Tutorial post for selenium IDE "waitForTitle" and "waitForNotTitle" commands

Selenium IDE is open source regression testing tool and has many different commands for controlling regression testing flow of your software web application and I am trying to write tutorial posts for all the selenium ide commands. "waitForTitle" and "waitForNotTitle" command are one of them and are works with title of software web application. There are many other "waitFor" and other commands available in selenium
IDE and you can read my previous posts to see all of them with examples. In this post, let me give you simple overview of "waitForTitle" and "waitForNotTitle" commands with simple example.

"waitForTitle" Command
"waitForTitle" command is useful to pause selenium IDE until expected title not appears on web page. You can set timeout value in value column. If not set then it will consider default timeout of selenium IDE. Look at bellow example.

New Test
CommandTargetValue
openhttp://only-testing-blog.blogspot.com/2013/10/table.html
verifyTitleOnly Testing: Table
clickAndWaitlink=Click Here
waitForTitleOnly Testing: MyTest

"waitForNotTitle" Command
"waitForNotTitle" command works in opposite to "waitForTitle" command. It will wait until targeted title disappears from page. Here is the example.

New Test
CommandTargetValue
openhttp://only-testing-blog.blogspot.com/2013/10/table.html
verifyTitleOnly Testing: Table
clickAndWaitlink=Click Here
waitForNotTitleOnly Testing: Table

No comments:

Post a Comment