Thursday, February 19, 2015

Pause and break commands in selenium IDE

Enter your email address:


Delivered by Mindq Software Testing Tutorials
Break command in selenium IDE: 


Break command will halt the currently running test case, and wait for the user to press (Pause/resume) or step button to continue the  execution process. It is very useful for debugging the test case, but we should be careful while using this command because it will force automated test cases to hang until a user click on (Pause/resume) or step to continue the test execution

Command Target Value
open https://www.google.co.in/
pause 3000
assertElementPresent id=gbqfq


In the above example  open command will open the google page after that pause command will stop the execution for 3 seconds, after that
break command will get executed and halts the test case execution until user press (Pause/resume) or step button


Pause command: 

pause command will wait for specific time(sleep time) in milliseconds. Test case execution will continue after specified time in "Target" filed


Command Target Value
open https://www.google.co.in/
pause 3000
assertElementPresent id=gbqfq

In the above example first it will open google page after that it will wait for 3000 milliseconds i.e 3 seconds after that assertElementPresent command will get executed.




Related articles: While loop in selenium IDE , Store values in selenium IDEHow to change default timeout in selenium IDE









No comments:

Post a Comment