public abstract class Element extends Object
Modifier and Type | Field and Description |
---|---|
protected org.openqa.selenium.WebDriver |
driver |
protected org.slf4j.Logger |
LOG |
Constructor and Description |
---|
Element(org.openqa.selenium.WebDriver driver) |
Element(org.openqa.selenium.WebDriver driver,
int implicitWait,
TimeUnit implictWaitUnit) |
Modifier and Type | Method and Description |
---|---|
protected <X> X |
execute(java.util.function.Supplier<X> supplier) |
org.openqa.selenium.WebElement |
findElementByCss(String css) |
org.openqa.selenium.WebElement |
findElementById(String id) |
org.openqa.selenium.WebElement |
findElementByLink(String link) |
org.openqa.selenium.WebElement |
findElementByName(String name) |
org.openqa.selenium.WebElement |
findElementByXpath(String xpath) |
org.openqa.selenium.WebDriver |
getDriver() |
protected final org.slf4j.Logger LOG
protected final org.openqa.selenium.WebDriver driver
public Element(org.openqa.selenium.WebDriver driver, int implicitWait, TimeUnit implictWaitUnit)
public Element(org.openqa.selenium.WebDriver driver)
public org.openqa.selenium.WebElement findElementById(String id)
public org.openqa.selenium.WebElement findElementByLink(String link)
public org.openqa.selenium.WebElement findElementByName(String name)
public org.openqa.selenium.WebElement findElementByCss(String css)
public org.openqa.selenium.WebElement findElementByXpath(String xpath)
public org.openqa.selenium.WebDriver getDriver()
protected <X> X execute(java.util.function.Supplier<X> supplier)
Copyright © 2022. All rights reserved.