What is use of driver.getTitle() in selenium?

Subhajit Manna
Subhajit Manna

Posted On: Apr 08, 2020

 

    1 Answer Written

  •  Subhajit Manna
    Answered by devquora

    The driver.getTitle() method in Selenium is used to retrieve the title of the current web page being displayed in the browser. This method returns a string containing the title of the page, which can be used for various purposes such as verifying that the correct page has loaded, or for logging and reporting purposes.

Related Questions

Please Login or Register to leave a response.

Related Questions

Cognizant Testing Interview Questions

Explain what is STLC?

STLC stands for Software Testing Life Cycle. STLC happens to be a series of different actions implemented by the examination team to guarantee the condition of the product or the software. As promptly...

Cognizant Testing Interview Questions

What is syntax to Initialize browser in webdriver?

By following the below-mentioned steps one may initiate browser in web driverAction 1: Download Chrome Drive Action 2: Unlock any browser and access http://www.seleniumhq.org/download/ Here you w...

Cognizant Testing Interview Questions

What is SDLC?

Software Development Life Cycle (SDLC) is nothing but a process that is utilized by the software manufacturing sectors to develop, design and test high-quality software. The SDLC strives to manufactur...