How to assert the title of the web page in WebDriver?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Jun 11, 2021

 

To assert the title of the web page in WebDriver you can follow the given steps:

  • Import Assert class in the import section: `import org.testng.Assert;`
  • Create a WebDriver object: WebDriver driver=new FirefoxDriver();
  • Apply this to assert the title of the page:

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Selenium Interview questions

    What Evaluation can Selenium Do?

    Selenium Could be Utilized for the purposeful, Regression, load testing of the Internet-based program. The Automation To..

    Selenium Interview questions

    Just how much does Selenium License cost per Customer Device?

    Selenium is open-source software, released under the Apache 2.0 license and can be downloaded and used without charge...

    Selenium Interview questions

    Where to obtain Selenium ?

    Selenium Can be Downloaded and Installed for free-form Seleniumhq.org..