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() |
protected void |
clickElementNoWait(org.openqa.selenium.WebElement element) |
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) |
SeleniumWComponentWebElement |
findElementImmediate(org.openqa.selenium.By by)
Find immediate with no polling.
|
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElementsImmediate(org.openqa.selenium.By by)
Find immediate with no polling.
|
String |
getActiveId()
Get the id of the default "active" part of the component.
|
String |
getAttribute(String name) |
String |
getCssValue(String propertyName) |
protected org.openqa.selenium.WebDriver |
getDriver() |
org.openqa.selenium.WebElement |
getElement() |
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() |
UIContext |
getUserContextForSession() |
boolean |
isDisplayed() |
boolean |
isEnabled() |
boolean |
isHidden() |
boolean |
isSelected() |
void |
sendKeys(boolean wait,
CharSequence... keys)
Send a key sequence and optionally wait for page ready afterwards.
|
void |
sendKeys(CharSequence... keys) |
void |
submit() |
void |
waitForPageReady()
Wait for the page to have loaded, including all AJAX and JavaScript.
|
protected SeleniumWComponentWebElement |
wrapElement(org.openqa.selenium.WebElement element) |
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 SeleniumWComponentWebElement findElementImmediate(org.openqa.selenium.By by)
by - the by conditionpublic List<org.openqa.selenium.WebElement> findElementsImmediate(org.openqa.selenium.By by)
by - the by conditionpublic 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 boolean isHidden()
true if the element is hidden in the current UI. This is not exactly the same as the reverse of
isDisplayed as it tests only for the element being hidden using the meachanism internal to WComponents and not
any other (CSS-based) mechanism which may result in isDisplayed() returning false.public void sendKeys(CharSequence... keys)
sendKeys in interface org.openqa.selenium.WebElementpublic void sendKeys(boolean wait,
CharSequence... keys)
wait - if true then wait for page ready after sending the keyskeys - The keys to sendpublic 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.WebDriverExceptionpublic String getActiveId()
public org.openqa.selenium.WebElement getElement()
public UIContext getUserContextForSession()
public void waitForPageReady()
protected void clickElementNoWait(org.openqa.selenium.WebElement element)
element - the element to click with no waitprotected SeleniumWComponentWebElement wrapElement(org.openqa.selenium.WebElement element)
element - the element to wrapSeleniumWComponentWebElementCopyright © 2024. All rights reserved.