public abstract class AbstractComponent extends Object implements Component
| Modifier and Type | Field and Description |
|---|---|
protected org.openqa.selenium.WebElement |
webElement |
| Constructor and Description |
|---|
AbstractComponent() |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
find() |
List<org.openqa.selenium.WebElement> |
findAll() |
org.openqa.selenium.WebElement |
findElement(Locator elementLocator) |
List<org.openqa.selenium.WebElement> |
findElements(Locator elementLocator) |
Browser |
getBrowser() |
HtmlElement |
getHtmlElement() |
Locator |
getLocator() |
protected org.slf4j.Logger |
getLogger() |
String |
getName() |
LocatesElements |
getParent() |
protected boolean |
isAlive(org.openqa.selenium.WebElement webElement) |
boolean |
isDisplayed() |
boolean |
isEnabled() |
void |
setBrowser(Browser browser) |
void |
setLocator(Locator locator) |
void |
setName(String name) |
void |
setParent(LocatesElements parent) |
void |
setWebElement(org.openqa.selenium.WebElement webElement) |
String |
toString() |
protected org.slf4j.Logger getLogger()
public HtmlElement getHtmlElement()
public void setWebElement(org.openqa.selenium.WebElement webElement)
public String getName()
public Locator getLocator()
getLocator in interface Componentpublic void setLocator(Locator locator)
setLocator in interface Componentpublic LocatesElements getParent()
public void setParent(LocatesElements parent)
public Browser getBrowser()
getBrowser in interface Componentpublic void setBrowser(Browser browser)
setBrowser in interface Componentpublic List<org.openqa.selenium.WebElement> findAll()
public org.openqa.selenium.WebElement findElement(Locator elementLocator)
findElement in interface LocatesElementsprotected boolean isAlive(org.openqa.selenium.WebElement webElement)
public List<org.openqa.selenium.WebElement> findElements(Locator elementLocator)
findElements in interface LocatesElementspublic boolean isDisplayed()
isDisplayed in interface ComponentCopyright © 2022. All rights reserved.