"runScript" command can be used for the different purpose in different condition. You can use it to run any java script in selenium IDE. View my previous 3 posts where i have described how to use "runScript" command for different purpose. Today we are taking one example of changing page title using "runScript"
A blog on Selenium tutorial, Selenium webdriver tutorial, Selenium IDE tutorial, Appium Tutorial, Selenium Grid Tutorial, Jmeter Tutorial.
Showing posts with label storeSelectOptions Command. Show all posts
Showing posts with label storeSelectOptions Command. Show all posts
Selenium IDE - "runScript" command example to split drop down label string
"runScript" command Example 1 and Example 2 will describe you how to generate alert message in selenium IDE. Now let we go at next step. Supposing i have a drop down containing labels Volvo, Saab, Opel, Audi, Toyota and Renault. I want to pick one specific label from it to store it in to variable to
Selenium IDE - "runScript" Command example to generate alert including variable value
In my previous post, I described how to generate alert message using "runScript" command in selenium IDE. In this example, Let we see how can we show variable value inside alert using "runScript" command. Copy paste bellow given example in your selenium IDE and run it.
Example 2 : "runScript" Command With Variable In Script
Selenium IDE - How to use "runScript" command in different ways with examples
Many blog readers were asking me for "runScript" command examples. Finally i got some time to prepare few examples for "runScript" command. There is not one specific use of "runScript" command but we can use it in different ways for different conditions. BTW, you can Look at different examples of using javascript with selenium IDE.
"storeSelectOptions" and "storeValue" commands in selenium IDE
"storeSelectOptions" Command
We can use "storeSelectOptions" command with only list box and drop downs. Function of this command is it will store all option labels names of targeted drop down or targeted list box in to variable. See bellow given example.
New Test | ||
Command | Target | Value |
storeSelectOptions | ctrl55_Contentitem_State | label |
storeValue | chk_box_01 | value |
In above example, "storeSelectOptions" command will store all option labels names of targeted list box
Related Articles :
Select commands,
selenium ide,
store commands,
storeSelectOptions Command,
storeValue Command
Subscribe to:
Posts (Atom)