Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
popsha
Amateur
Amateur
Posts : 60
Join date : 2012-04-14

how to use while statement in ide Empty how to use while statement in ide

Wed May 02, 2012 11:01 am
consider there are three text fields and two drop down box consist of 'YES' an 'NO' options.

first text field is to be filled manually.(assume text as 'name')
condition is that, when the two drop down is 'YES' then the other two button are filled with the same text ie 'name'
if any one of the drop down is 'NO' then that text field is to be entered manually.

can anyone suggest me solution using the user-extentions
while, gotoif,

Thanks in advance.
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO

how to use while statement in ide Empty Re: how to use while statement in ide

Wed May 02, 2012 10:17 pm
Hopefully I have this somewhat accurate.how to use while statement in ide GotoIf
What I would do is use the storeValue command to store the "name" field and the two drop downs. Then using gotoIf, evaluate if drop down1==Yes && drop down2==Yes. If that gotoIf function is true(scenario 1), then send it to a label to populate the other fields with the stored "name".
If the condition is not satisfied(scenario 2), you can go to the end of the script. You could even take it a step further using storeEval and display a prompt to type in the "name" within Selenium to fill in the two blank fields.

Let me know if you have any questions.

-Cameron

avatar
TurtleRock
Posts : 8
Join date : 2012-05-16

how to use while statement in ide Empty Re: how to use while statement in ide

Wed May 16, 2012 11:30 pm
How do we use gotoIf command, this command is not in command LOVs of my selenium IDE.
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO

how to use while statement in ide Empty Re: how to use while statement in ide

Wed May 16, 2012 11:55 pm
You have to extend Selenium IDE with the user-extension.js file to have access to these commands. http://51elliot.blogspot.com/2008/02/selenium-ide-goto.html

Read up on this and let me know if you have questions.
Sponsored content

how to use while statement in ide Empty Re: how to use while statement in ide

Back to top
Permissions in this forum:
You cannot reply to topics in this forum