How can we fetch title of the page in selenium?



How can we fetch title of the page in selenium?..

Answer / Chandra Prakash Rawat

To fetch the title of a web page in Selenium, you can use the 'getTitle()' method. For example: `String title = driver.getTitle();`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

how will u log a bug and the process of logging bus in selenium?

1 Answers  


How to click on a hyperlink using selenium webdriver?

1 Answers  


How to fetch the current page url in selenium?

1 Answers  


List the different types of locaters in selenium.

1 Answers  


Explain how you can handle frames using selenium 2.0?

1 Answers  


What are the two modes of views in selenium ide?

1 Answers  


How to enforce the title of the website?

1 Answers  


How to handle a dropdown in selenium webdriver?

1 Answers  


How to find whether an element is displayed on the web page?

1 Answers  


How can we fetch title of the page in selenium?

1 Answers  


How to iterate through options in test script?

1 Answers  


Tell us can you write the code to double click an element in selenium?

1 Answers  


Categories