Browser interactions

Get browser information

Get title

You can read the current page title from the browser:

Move Code

 String title = driver.getTitle();
title = driver.title
 String title = driver.Title;
 it 'gets the current title' do
 let title = await driver.getTitle();
driver.title

Get current URL

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

Move Code

 String url = driver.getCurrentUrl();
url = driver.current_url
 String url = driver.Url;
 it 'gets the current url' do
 let currentUrl = await driver.getCurrentUrl();
driver.currentUrl