Get Title in Selenium WebDriver with Examples
Page titles may look simple, but they play a powerful role in UI testing. Every time you land on a web page, the browser title tells you where you are. That same logic applies to automation. With Selenium WebDriver, you can get the page title to confirm if your test is on the right screen. If you're trying to validate navigation, this ability to get title in Selenium helps confirm that the application behaves as expected. In this article, we’ll walk you through: Let’s get started.