public class Browser extends Object implements LocatesElements
| Constructor and Description |
|---|
Browser(org.openqa.selenium.WebDriver driver) |
Browser(org.openqa.selenium.WebDriver driver,
TimeUnit unit,
int elementTimeout,
int pageTimeout) |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
findElement(Locator locator) |
List<org.openqa.selenium.WebElement> |
findElements(Locator locator) |
String |
getCurrentUrl() |
org.openqa.selenium.WebDriver |
getDriver() |
org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> |
getDynamicWaiter() |
String |
getPageHtml() |
BrowserPopUps |
getPopUps()
Gets the browser popup handler
|
String |
getTitle() |
void |
goBack() |
void |
goTo(String url) |
void |
quit() |
byte[] |
takeScreenshot() |
void |
waitForPageToLoad() |
public Browser(org.openqa.selenium.WebDriver driver)
public Browser(org.openqa.selenium.WebDriver driver,
TimeUnit unit,
int elementTimeout,
int pageTimeout)
public byte[] takeScreenshot()
public org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> getDynamicWaiter()
public org.openqa.selenium.WebElement findElement(Locator locator)
findElement in interface LocatesElementspublic List<org.openqa.selenium.WebElement> findElements(Locator locator)
findElements in interface LocatesElementspublic BrowserPopUps getPopUps()
public String getTitle()
public void goTo(String url)
public String getCurrentUrl()
public void quit()
public org.openqa.selenium.WebDriver getDriver()
public void goBack()
public void waitForPageToLoad()
public String getPageHtml()
Copyright © 2018. All rights reserved.