Translate

Friday, July 22, 2016

The Selenium IDE ‘...AndWait’ or ‘waitFor…’ or ‘pause’commands

Now these are not commands within themselves but more to increase the robustness of your test. For example, if your test is set to the fastest speed on IDE and you have to wait for a link to process or for a webpage to load you can call either clickAndWait which will wait till the event that you triggered, when you clicked on some element, or you can call, in this case, waitForPageToLoad which will wait till the html elements load on the webpage.




You’ll notice that each of these commands has a number in the value field. This is to set the timeout value, meaning how long is the maximum wait time.
I have found that using the ‘pause’ command in replacement of the wait can be helpful. Just a word of caution is that it is specific timing so that you cannot make it relative like the wait command but it can be a way to make your code run smoother. Also to note is that the amount of time you want to pause goes in the target not the value.



If you have any question or comments please leave them below.

4 comments :

  1. This is very informative blog and nice article , I really like your technique of writing a blog. I book marked it to my bookmark site list and will be checking back in the near futureselenium training,selenium online training,selenium training online,selenium free course

    ReplyDelete
  2. Images missing :-(

    ReplyDelete
  3. This is very informative blog and nice article , I really like your technique of writing a blog. More screenshots gives the clear representation.. I book marked it to my bookmark site list and will be checking back in the near future Best Selenium Training gives you the entire stuff about all the Selenium Components.

    ReplyDelete