Interview Questions

Selenium WebDriver - How to assert title of the web page?

Selenium WebDriver Interview question and Answers


(Continued from previous question...)

Selenium WebDriver - How to assert title of the web page?

//verify the title of the web page
assertTrue(“The title of the window is incorrect.”,driver.getTitle().equals(“Title of the page”));

(Continued on next question...)

Other Interview Questions