Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

how to use while statement in ide

View previous topic View next topic Go down

how to use while statement in ide

Post by popsha on 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.

popsha
Amateur
Amateur

Posts : 60
Join date : 2012-04-14

Back to top Go down

Re: how to use while statement in ide

Post by ccox on Wed May 02, 2012 10:17 pm

Hopefully I have this somewhat accurate.
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


ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 32
Location : Denver, CO

Back to top Go down

Re: how to use while statement in ide

Post by TurtleRock on Wed May 16, 2012 11:30 pm

How do we use gotoIf command, this command is not in command LOVs of my selenium IDE.

TurtleRock

Posts : 8
Join date : 2012-05-16

Back to top Go down

Re: how to use while statement in ide

Post by ccox on 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.

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 32
Location : Denver, CO

Back to top Go down

Re: how to use while statement in ide

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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