public abstract class WebComponent extends Object implements org.openqa.selenium.WebElement, org.openqa.selenium.internal.FindsByLinkText, org.openqa.selenium.internal.FindsById, org.openqa.selenium.internal.FindsByName, org.openqa.selenium.internal.FindsByTagName, org.openqa.selenium.internal.FindsByClassName, org.openqa.selenium.internal.FindsByCssSelector, org.openqa.selenium.internal.FindsByXPath, org.openqa.selenium.internal.WrapsDriver, org.openqa.selenium.internal.Locatable
Constructor and Description |
---|
WebComponent() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clear(org.openqa.selenium.WebElement webElement) |
void |
click() |
void |
click(org.openqa.selenium.WebElement webElement) |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
org.openqa.selenium.WebElement |
findElementByClassName(String using) |
org.openqa.selenium.WebElement |
findElementByCssSelector(String using) |
org.openqa.selenium.WebElement |
findElementById(String using) |
org.openqa.selenium.WebElement |
findElementByLinkText(String using) |
org.openqa.selenium.WebElement |
findElementByName(String using) |
org.openqa.selenium.WebElement |
findElementByPartialLinkText(String using) |
org.openqa.selenium.WebElement |
findElementByTagName(String using) |
org.openqa.selenium.WebElement |
findElementByXPath(String using) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElementsByClassName(String using) |
List<org.openqa.selenium.WebElement> |
findElementsByCssSelector(String using) |
List<org.openqa.selenium.WebElement> |
findElementsById(String using) |
List<org.openqa.selenium.WebElement> |
findElementsByLinkText(String using) |
List<org.openqa.selenium.WebElement> |
findElementsByName(String using) |
List<org.openqa.selenium.WebElement> |
findElementsByPartialLinkText(String using) |
List<org.openqa.selenium.WebElement> |
findElementsByTagName(String using) |
List<org.openqa.selenium.WebElement> |
findElementsByXPath(String using) |
String |
getAttribute(String name) |
org.openqa.selenium.interactions.internal.Coordinates |
getCoordinates() |
String |
getCssValue(String propertyName) |
org.openqa.selenium.Point |
getLocation() |
org.openqa.selenium.Rectangle |
getRect() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> ot) |
org.openqa.selenium.Dimension |
getSize() |
String |
getTagName() |
String |
getText() |
org.openqa.selenium.WebDriver |
getWrappedDriver() |
void |
init(org.openqa.selenium.WebElement wrappedWebElement) |
void |
init(org.openqa.selenium.WebElement wrappedWebElement,
org.openqa.selenium.WebElement delegateWebElement) |
boolean |
isDisplayed() |
boolean |
isDisplayed(org.openqa.selenium.WebElement webElement) |
boolean |
isEnabled() |
boolean |
isSelected() |
void |
sendKeys(CharSequence... keysToSend) |
void |
submit() |
public void init(org.openqa.selenium.WebElement wrappedWebElement)
public void init(org.openqa.selenium.WebElement wrappedWebElement, org.openqa.selenium.WebElement delegateWebElement)
public void click()
click
in interface org.openqa.selenium.WebElement
public void submit()
submit
in interface org.openqa.selenium.WebElement
public void sendKeys(CharSequence... keysToSend)
sendKeys
in interface org.openqa.selenium.WebElement
public void clear()
clear
in interface org.openqa.selenium.WebElement
public String getTagName()
getTagName
in interface org.openqa.selenium.WebElement
public String getAttribute(String name)
getAttribute
in interface org.openqa.selenium.WebElement
public boolean isSelected()
isSelected
in interface org.openqa.selenium.WebElement
public boolean isEnabled()
isEnabled
in interface org.openqa.selenium.WebElement
public String getText()
getText
in interface org.openqa.selenium.WebElement
public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements
in interface org.openqa.selenium.SearchContext
findElements
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement
in interface org.openqa.selenium.SearchContext
findElement
in interface org.openqa.selenium.WebElement
public boolean isDisplayed()
isDisplayed
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Point getLocation()
getLocation
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Dimension getSize()
getSize
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Rectangle getRect()
getRect
in interface org.openqa.selenium.WebElement
public String getCssValue(String propertyName)
getCssValue
in interface org.openqa.selenium.WebElement
public void click(org.openqa.selenium.WebElement webElement)
public void clear(org.openqa.selenium.WebElement webElement)
public boolean isDisplayed(org.openqa.selenium.WebElement webElement)
public org.openqa.selenium.WebElement findElementByLinkText(String using)
findElementByLinkText
in interface org.openqa.selenium.internal.FindsByLinkText
public List<org.openqa.selenium.WebElement> findElementsByLinkText(String using)
findElementsByLinkText
in interface org.openqa.selenium.internal.FindsByLinkText
public org.openqa.selenium.WebElement findElementByPartialLinkText(String using)
findElementByPartialLinkText
in interface org.openqa.selenium.internal.FindsByLinkText
public List<org.openqa.selenium.WebElement> findElementsByPartialLinkText(String using)
findElementsByPartialLinkText
in interface org.openqa.selenium.internal.FindsByLinkText
public org.openqa.selenium.WebElement findElementById(String using)
findElementById
in interface org.openqa.selenium.internal.FindsById
public List<org.openqa.selenium.WebElement> findElementsById(String using)
findElementsById
in interface org.openqa.selenium.internal.FindsById
public org.openqa.selenium.WebElement findElementByName(String using)
findElementByName
in interface org.openqa.selenium.internal.FindsByName
public List<org.openqa.selenium.WebElement> findElementsByName(String using)
findElementsByName
in interface org.openqa.selenium.internal.FindsByName
public org.openqa.selenium.WebElement findElementByTagName(String using)
findElementByTagName
in interface org.openqa.selenium.internal.FindsByTagName
public List<org.openqa.selenium.WebElement> findElementsByTagName(String using)
findElementsByTagName
in interface org.openqa.selenium.internal.FindsByTagName
public org.openqa.selenium.WebElement findElementByClassName(String using)
findElementByClassName
in interface org.openqa.selenium.internal.FindsByClassName
public List<org.openqa.selenium.WebElement> findElementsByClassName(String using)
findElementsByClassName
in interface org.openqa.selenium.internal.FindsByClassName
public org.openqa.selenium.WebElement findElementByCssSelector(String using)
findElementByCssSelector
in interface org.openqa.selenium.internal.FindsByCssSelector
public List<org.openqa.selenium.WebElement> findElementsByCssSelector(String using)
findElementsByCssSelector
in interface org.openqa.selenium.internal.FindsByCssSelector
public org.openqa.selenium.WebElement findElementByXPath(String using)
findElementByXPath
in interface org.openqa.selenium.internal.FindsByXPath
public List<org.openqa.selenium.WebElement> findElementsByXPath(String using)
findElementsByXPath
in interface org.openqa.selenium.internal.FindsByXPath
public org.openqa.selenium.WebDriver getWrappedDriver()
getWrappedDriver
in interface org.openqa.selenium.internal.WrapsDriver
public org.openqa.selenium.interactions.internal.Coordinates getCoordinates()
getCoordinates
in interface org.openqa.selenium.internal.Locatable
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> ot) throws org.openqa.selenium.WebDriverException
getScreenshotAs
in interface org.openqa.selenium.TakesScreenshot
org.openqa.selenium.WebDriverException
Copyright © 2017 WebDriver Extensions. All rights reserved.