Browser interactions

Get browser information

Get title

You can read the current page title from the browser:

Move Code

driver.getTitle();
driver.title
driver.Title;
driver.title
await driver.getTitle();
driver.title

Get current URL

You can read the current URL from the browser’s address bar using:

Move Code

driver.getCurrentUrl();
driver.current_url
driver.Url;
driver.current_url
await driver.getCurrentUrl();
driver.currentUrl