assertTitle (text), verifyTitle (text) - Selenium IDE command

assertTitle gets the title of a website and checks it again the provided text.

Assert and verify commands are both useful for verifying condition match or not. The difference is that verify command will verify the condition and if its not match, it will give error message in Log area and the macro continues to run. With the assert command, if the condition does not match then it will stop remaining macro execution in the selenium IDE software testing tool.

assertText Example

Command Target Pattern/Text
open https://a9t9.com/
assertTitle I am the page title!

Works in

Kantu for Chrome Selenium IDE, Firefox IDE Classic

Related Demo Macros

Demo-Autofill, Demo-Frame

The ready-to-import-and-run source code of all demo macros can be found in the Github repository testmacros folder.

See also

assertText, verifyText, Web Automation Extension User Manual, Selenium IDE commands, Classic Firefox Selenium IDE.

Anything wrong or missing on this page? Suggestions?

...then please contact us.

Kantu Selenium IDE for Chrome and Firefox - Web Test Automation
Subscribe to the a9t9 automation software newsletter . We'll send you updates on new releases that we're working on.