public class SimplePageElement extends Object implements SmartWebElement, 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 |
|---|
SimplePageElement(org.openqa.selenium.By by,
WebDriverInterface iface) |
SimplePageElement(org.openqa.selenium.By by,
WebDriverInterface iface,
org.openqa.selenium.WebElement element) |
SimplePageElement(org.openqa.selenium.By by,
WebDriverInterface iface,
org.openqa.selenium.WebElement element,
org.openqa.selenium.WebElement baseElement) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
click() |
SmartWebElement |
findElement(org.openqa.selenium.By by) |
org.openqa.selenium.WebElement |
findElementByClassName(String paramString) |
org.openqa.selenium.WebElement |
findElementByCssSelector(String paramString) |
org.openqa.selenium.WebElement |
findElementById(String paramString) |
org.openqa.selenium.WebElement |
findElementByLinkText(String paramString) |
org.openqa.selenium.WebElement |
findElementByName(String paramString) |
org.openqa.selenium.WebElement |
findElementByPartialLinkText(String paramString) |
org.openqa.selenium.WebElement |
findElementByTagName(String paramString) |
org.openqa.selenium.WebElement |
findElementByXPath(String paramString) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElementsByClassName(String paramString) |
List<org.openqa.selenium.WebElement> |
findElementsByCssSelector(String paramString) |
List<org.openqa.selenium.WebElement> |
findElementsById(String paramString) |
List<org.openqa.selenium.WebElement> |
findElementsByLinkText(String paramString) |
List<org.openqa.selenium.WebElement> |
findElementsByName(String paramString) |
List<org.openqa.selenium.WebElement> |
findElementsByPartialLinkText(String paramString) |
List<org.openqa.selenium.WebElement> |
findElementsByTagName(String paramString) |
List<org.openqa.selenium.WebElement> |
findElementsByXPath(String paramString) |
String |
getAttribute(String name) |
org.openqa.selenium.By |
getBy() |
org.openqa.selenium.interactions.internal.Coordinates |
getCoordinates() |
String |
getCssValue(String propertyName) |
org.openqa.selenium.WebElement |
getElement() |
WebDriverInterface |
getInterface() |
org.openqa.selenium.Point |
getLocation() |
org.openqa.selenium.Point |
getLocationOnScreenOnceScrolledIntoView() |
org.openqa.selenium.Dimension |
getSize() |
String |
getTagName() |
String |
getText() |
org.openqa.selenium.WebDriver |
getWrappedDriver() |
boolean |
isDisplayed() |
boolean |
isEnabled() |
boolean |
isSelected() |
void |
sendKeys(CharSequence... keysToSend) |
void |
submit() |
public SimplePageElement(org.openqa.selenium.By by,
WebDriverInterface iface)
public SimplePageElement(org.openqa.selenium.By by,
WebDriverInterface iface,
org.openqa.selenium.WebElement element)
by - The by to find this element. If the element is a SmartWebElement, this by
overrides the by inside the SmartWebElementiface - The interface on which this element will appearelement - If this is also a SmartWebElement, the element inside the SmartWebElement
is taken.public SimplePageElement(org.openqa.selenium.By by,
WebDriverInterface iface,
org.openqa.selenium.WebElement element,
org.openqa.selenium.WebElement baseElement)
by - The by to find this element. If the element is a SmartWebElement, this by
overrides the by inside the SmartWebElementiface - The interface on which this element will appearelement - If this is also a SmartWebElement, the element inside the SmartWebElement
is taken.baseElement - If set, this element is used as base element for commands like findElement.public org.openqa.selenium.By getBy()
getBy in interface SmartWebElementBy used to find the elementpublic WebDriverInterface getInterface()
public void click()
click in interface org.openqa.selenium.WebElementpublic void submit()
submit in interface org.openqa.selenium.WebElementpublic void sendKeys(CharSequence... keysToSend)
sendKeys in interface org.openqa.selenium.WebElementpublic void clear()
clear in interface org.openqa.selenium.WebElementpublic String getTagName()
getTagName in interface org.openqa.selenium.WebElementpublic String getAttribute(String name)
getAttribute in interface org.openqa.selenium.WebElementpublic boolean isSelected()
isSelected in interface org.openqa.selenium.WebElementpublic boolean isEnabled()
isEnabled in interface org.openqa.selenium.WebElementpublic String getText()
getText 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 SmartWebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement 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.interactions.internal.Coordinates getCoordinates()
getCoordinates in interface org.openqa.selenium.internal.Locatablepublic org.openqa.selenium.Point getLocationOnScreenOnceScrolledIntoView()
getLocationOnScreenOnceScrolledIntoView in interface org.openqa.selenium.internal.Locatablepublic org.openqa.selenium.WebDriver getWrappedDriver()
getWrappedDriver in interface org.openqa.selenium.internal.WrapsDriverpublic org.openqa.selenium.WebElement findElementByXPath(String paramString)
findElementByXPath in interface org.openqa.selenium.internal.FindsByXPathpublic List<org.openqa.selenium.WebElement> findElementsByXPath(String paramString)
findElementsByXPath in interface org.openqa.selenium.internal.FindsByXPathpublic org.openqa.selenium.WebElement findElementByCssSelector(String paramString)
findElementByCssSelector in interface org.openqa.selenium.internal.FindsByCssSelectorpublic List<org.openqa.selenium.WebElement> findElementsByCssSelector(String paramString)
findElementsByCssSelector in interface org.openqa.selenium.internal.FindsByCssSelectorpublic org.openqa.selenium.WebElement findElementByClassName(String paramString)
findElementByClassName in interface org.openqa.selenium.internal.FindsByClassNamepublic List<org.openqa.selenium.WebElement> findElementsByClassName(String paramString)
findElementsByClassName in interface org.openqa.selenium.internal.FindsByClassNamepublic org.openqa.selenium.WebElement findElementByTagName(String paramString)
findElementByTagName in interface org.openqa.selenium.internal.FindsByTagNamepublic List<org.openqa.selenium.WebElement> findElementsByTagName(String paramString)
findElementsByTagName in interface org.openqa.selenium.internal.FindsByTagNamepublic org.openqa.selenium.WebElement findElementByName(String paramString)
findElementByName in interface org.openqa.selenium.internal.FindsByNamepublic List<org.openqa.selenium.WebElement> findElementsByName(String paramString)
findElementsByName in interface org.openqa.selenium.internal.FindsByNamepublic org.openqa.selenium.WebElement findElementById(String paramString)
findElementById in interface org.openqa.selenium.internal.FindsByIdpublic List<org.openqa.selenium.WebElement> findElementsById(String paramString)
findElementsById in interface org.openqa.selenium.internal.FindsByIdpublic org.openqa.selenium.WebElement findElementByLinkText(String paramString)
findElementByLinkText in interface org.openqa.selenium.internal.FindsByLinkTextpublic List<org.openqa.selenium.WebElement> findElementsByLinkText(String paramString)
findElementsByLinkText in interface org.openqa.selenium.internal.FindsByLinkTextpublic org.openqa.selenium.WebElement findElementByPartialLinkText(String paramString)
findElementByPartialLinkText in interface org.openqa.selenium.internal.FindsByLinkTextpublic List<org.openqa.selenium.WebElement> findElementsByPartialLinkText(String paramString)
findElementsByPartialLinkText in interface org.openqa.selenium.internal.FindsByLinkTextpublic org.openqa.selenium.WebElement getElement()
getElement in interface SmartWebElementWebElement.findElement(By)Copyright © 2012. All Rights Reserved.