Browser interactions
Get browser information
Coletar título
Você pode ler o título da página atual no navegador:
String title = driver.getTitle();
title = driver.title
String title = driver.Title;
it 'gets the current title' do
let title = await driver.getTitle();
driver.title
Coletar a URL atual
Você pode ler a URL atual na barra de endereço do navegador usando:
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
Virtual Authenticator
Uma representação do modelo Web Authenticator.