I´m using the Selenium IDE for Firefox and searching for a wait command. My problem is that I want to test a website with a embedded external map. This external map needs 3-5 seconds to load.
My commands:
open /Page/mysite.html //Wait Command? (5 seconds) ClickAndWait link=do something
pause (time in milliseconds) - Selenium IDE command The pause command is a simple wait command and useful to delay the execution of the automated testing for the specified time. Note that the wait time is in MILLIseconds. So if you want to wait for 3 seconds, enter 3000.
To control the speed of the test execution, you can click on the clock icon on the toolbar and change the speed according to your requirement. To pause the entire test execution, you can click on the pause icon on the top left corner.
By: Arun MotooriIn: Selenium. Refer the article New Selenium IDE – Commands (Selenese), for the complete list of Selenium IDE commands and their practical demonstrations. pause is one of the commands in Selenium IDE. The purpose of the pause command is to pause the execution of Selenium Test for the required time.
Use the pause command and enter the number of milliseconds in the Target field.
Set speed to fastest (Actions --> Fastest), otherwise it won't work.
This will delay things for 5 seconds:
Command: pause
Target: 5000
Value:
This will delay things for 3 seconds:
Command: pause
Target: 3000
Value:
Documentation:
http://release.seleniumhq.org/selenium-core/1.0/reference.html#pause
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With