public class ByUniqueElementLocator extends java.lang.Object implements UniqueElementLocator
By Definition.| Constructor and Description |
|---|
ByUniqueElementLocator(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.By locator,
java.lang.String pageName,
java.lang.String fieldDescription)
Create a new instance.
|
ByUniqueElementLocator(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.SearchContext searchContext,
org.openqa.selenium.By locator,
java.lang.String pageName,
java.lang.String fieldDescription)
create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
findElement()
Finds a element.
|
java.lang.String |
getFieldDescription()
Get the description of the field, including the context.
|
java.lang.String |
getPageName()
Get the name of the page where the element is.
|
org.openqa.selenium.WebDriver |
getWebDriver()
Returns the underlying
WebDriver. |
public ByUniqueElementLocator(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.By locator,
java.lang.String pageName,
java.lang.String fieldDescription)
webDriver - the underlying webdriver.locator - A By expression to find the element, which should
be unique.pageName - name of the page where the element is.fieldDescription - description of the field, including the context.public ByUniqueElementLocator(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.SearchContext searchContext,
org.openqa.selenium.By locator,
java.lang.String pageName,
java.lang.String fieldDescription)
webDriver - the webdriversearchContext - a special SearchContext, on which the
locator should work.locator - the locatorpageName - name of the page where the element is.fieldDescription - description of the field, including the context.public org.openqa.selenium.WebDriver getWebDriver()
WebDriver.getWebDriver in interface UniqueElementLocatorWebDriver.public org.openqa.selenium.WebElement findElement()
findElement in interface UniqueElementLocatorpublic java.lang.String getPageName()
getPageName in interface UniqueElementLocatorpublic java.lang.String getFieldDescription()
getFieldDescription in interface UniqueElementLocatorCopyright © 2017 PPI AG. All rights reserved.