public class SeleniumWComponentWebElement extends Object implements org.openqa.selenium.WebElement
| Constructor and Description |
|---|
SeleniumWComponentWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
Creates a WebElementWrapper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
click() |
void |
clickNoWait()
Perform a click action without waiting for the WComponent ready status
Used when the click will result in a non-WComponents page.
|
SeleniumWComponentWebElement |
findElement(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
SeleniumWSelectWebElement |
findSeleniumWSelectWebElement(org.openqa.selenium.By by) |
String |
getAttribute(String name) |
String |
getCssValue(String propertyName) |
protected org.openqa.selenium.WebDriver |
getDriver() |
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() |
boolean |
isDisplayed() |
boolean |
isEnabled() |
boolean |
isSelected() |
void |
sendKeys(CharSequence... keys) |
void |
submit() |
public SeleniumWComponentWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
element - the backing element.driver - the SeleniumWComponentsWebDriver.protected org.openqa.selenium.WebDriver getDriver()
public void clear()
clear in interface org.openqa.selenium.WebElementpublic void click()
click in interface org.openqa.selenium.WebElementpublic void clickNoWait()
Perform a click action without waiting for the WComponent ready status
Used when the click will result in a non-WComponents page.
public SeleniumWSelectWebElement findSeleniumWSelectWebElement(org.openqa.selenium.By by)
by - the by to find the component.public SeleniumWComponentWebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebElementpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebElementpublic String getAttribute(String name)
getAttribute in interface org.openqa.selenium.WebElementpublic String getTagName()
getTagName in interface org.openqa.selenium.WebElementpublic String getText()
getText in interface org.openqa.selenium.WebElementpublic boolean isEnabled()
isEnabled in interface org.openqa.selenium.WebElementpublic boolean isSelected()
isSelected in interface org.openqa.selenium.WebElementpublic void sendKeys(CharSequence... keys)
sendKeys in interface org.openqa.selenium.WebElementpublic void submit()
submit in interface org.openqa.selenium.WebElementpublic boolean isDisplayed()
isDisplayed in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Point getLocation()
getLocation in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Dimension getSize()
getSize in interface org.openqa.selenium.WebElementpublic String getCssValue(String propertyName)
getCssValue in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Rectangle getRect()
getRect in interface org.openqa.selenium.WebElementpublic <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> ot)
throws org.openqa.selenium.WebDriverException
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotorg.openqa.selenium.WebDriverExceptionCopyright © 2016. All rights reserved.