How to implement logic: if element exist in the list (array), Se, Selenise

dainova at 17h20
30
Oct
2012
How to implement logic: if element exist in the list (array), Se, Selenise

HI, all
I'm trying to implement logic where I check if ${month} exists in predefined static list , e.g. (Jan, Feb, Mar, Sep). Then if YES do gotoIF target1 if NOT gotoIF target2.
We actively using js user extensions in our framework, and trying to stay withing Selenium/Selenise.
What would be the good way to do so? To define some array in js? or some other things?

Thanks for help.
Dai
About
This topic belongs to the forum
  • Numbers of topics : 2338
  • Numbers of messages : 6053
  • Numbers of users : 5040
  • Numbers of points : 139
Similar topics
Details Steps are below. 1. Opened Ebay Site 2. Searched for LED TV 3. Captured prices of the results     List uiAllPrices = oBrowser.findElements(By.xpath("//td[@class='prc']/div//div[@itemprop='price']/span")); For example: If 3 types of LED TV's
Hi, I want to store a javascript array & access its first element & type it in a text field store | javascript{var array = ["jan","feb"];} | months storeEval | storedVars['months'][0] || crntmonth type | month |
Javascript Array Working with arrays in JavaScript Hello members of WebArtz, I am Mr.Joker and today I will try to teach you what is an Array. Well, as a name say allready an Array can store some values inside it. For example an array in real life
I am using selenium in Firefox. My application is having a ajax drop down list with autosuggestion option from where i need to select data. When I start typing in the text area, autosuggest control provides similar options available in the
http://www.huffingtonpost.com/2013/08/21/utopias_n_3768023.html?ir=Healthy+Living I wonder how many of us could live in a commune?
Forums from same category
  • This discussion board serves as a tool to aid students during the lesson confusion and misinterpretation occurs help can come from peers and myself, Ms Kettledas

  • A1developers has site developes a software

  • Spark Energy is an electricity and natural gas provider for homes and businesses.

  • Free forum : LoH discussion for strategy and listing of allies and friendlies.

  • Breitburn Energy Shareholders Discussion