Q. Which method retrieves the page title in Selenium?

A
getTitle()
B
getText()
C
getPage()
D
getHeader()
Solution:

getTitle() returns the title of the current webpage as a string.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!

    [honeypot honeypot-100]