Get Selenium IDE fromhttp://seleniumhq.org
This extension will allow for the use of loops, goto and gotoIf's.
To set up a generic loop for testing enter the following values into the table.
Command: store | Target: Any Numerical Value | Value: Y
Command: store | Target: 0 | Value: X
Command: label | Target: target1 | Value:
Once that task has been completed, put the following at the bottom of the table.
Command: store | Target: ${X}+1 | Value: X
Command: gotoIf | Target: ${X}<${Y} | target1
Now the test is ready to be run with the loops. Here is a quick example of a simple test to run.
In the example above, automation will perform a search on bing two times. This is of course just an example, you likely would not want to do this as part of your testing.
Another handy thing within Selenium IDE is that you can change your clipboard format.
Here is a helpful link for additional documentation from Selenium: http://docs.seleniumhq.org/docs/02_selenium_ide.jsp
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)