|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.selenium.remote.RemoteWebElement
com.opera.core.systems.OperaWebElement
public class OperaWebElement
Implements WebDriver's WebElement, but also extends it with Opera specific methods.
| Field Summary | |
|---|---|
protected Logger |
logger
|
| Fields inherited from class org.openqa.selenium.remote.RemoteWebElement |
|---|
fileDetector, id, mouse |
| Constructor Summary | |
|---|---|
OperaWebElement(OperaDriver parent,
int objectId)
|
|
| Method Summary | |
|---|---|
String |
callMethod(String method)
Calls the method and parses the result, the result must be a string |
void |
clear()
|
void |
click()
|
boolean |
containsColor(OperaColors... colors)
Deprecated. |
boolean |
equals(Object obj)
|
protected void |
finalize()
|
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by)
|
protected org.openqa.selenium.WebElement |
findElement(String by,
String using)
|
org.openqa.selenium.WebElement |
findElementByName(String using)
|
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by)
|
protected List<org.openqa.selenium.WebElement> |
findElements(String by,
String using)
|
List<org.openqa.selenium.WebElement> |
findElementsByName(String using)
|
String |
getAttribute(String attribute)
|
org.openqa.selenium.interactions.internal.Coordinates |
getCoordinates()
|
String |
getCssValue(String property)
|
String |
getImageHash()
Takes a screenshot of the area this element's bounding-box covers and returns the MD5 hash. |
String |
getImageHash(long timeout,
String... hashes)
Takes a screenshot after timeout milliseconds of the area this element's bounding-box covers and returns the MD5 hash. |
org.openqa.selenium.Point |
getLocation()
Click top left, can be modified to click in the middle |
org.openqa.selenium.Point |
getLocationOnScreenOnceScrolledIntoView()
|
int |
getObjectId()
|
int |
getRuntimeId()
|
org.openqa.selenium.Dimension |
getSize()
|
String |
getTagName()
|
String |
getText()
|
org.openqa.selenium.WebDriver |
getWrappedDriver()
|
int |
hashCode()
|
boolean |
isDisplayed()
|
boolean |
isEnabled()
|
boolean |
isSelected()
|
void |
middleClick()
Deprecated. |
ScreenShotReply |
saveScreenshot(long timeout,
String... hashes)
Take a screenshot of the area this element's bounding-box covers. |
String |
saveScreenshot(String filename)
Take a screenshot of the area this element's bounding-box covers. |
String |
saveScreenshot(String filename,
long timeout)
Take a screenshot of the area this element covers. |
String |
saveScreenshot(String filename,
long timeout,
boolean includeImage,
String... hashes)
Take a screenshot of the area this element covers. |
void |
sendKeys(CharSequence... keysToSend)
|
void |
submit()
|
String |
toString()
|
| Methods inherited from class org.openqa.selenium.remote.RemoteWebElement |
|---|
execute, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, getId, setFileDetector, setFoundBy, setId, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Logger logger
| Constructor Detail |
|---|
public OperaWebElement(OperaDriver parent,
int objectId)
parent - driver that this element belongs toobjectId - the EcmaScript object ID of this element| Method Detail |
|---|
public final String callMethod(String method)
method - the method to call
public void click()
click in interface org.openqa.selenium.WebElementclick in class org.openqa.selenium.remote.RemoteWebElement@Deprecated public void middleClick()
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebElementfindElement in class org.openqa.selenium.remote.RemoteWebElementpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebElementfindElements in class org.openqa.selenium.remote.RemoteWebElementpublic String getAttribute(String attribute)
getAttribute in interface org.openqa.selenium.WebElementgetAttribute in class org.openqa.selenium.remote.RemoteWebElementpublic String getText()
getText in interface org.openqa.selenium.WebElementgetText in class org.openqa.selenium.remote.RemoteWebElementpublic boolean isDisplayed()
isDisplayed in interface org.openqa.selenium.WebElementisDisplayed in class org.openqa.selenium.remote.RemoteWebElementpublic boolean isEnabled()
isEnabled in interface org.openqa.selenium.WebElementisEnabled in class org.openqa.selenium.remote.RemoteWebElementpublic boolean isSelected()
isSelected in interface org.openqa.selenium.WebElementisSelected in class org.openqa.selenium.remote.RemoteWebElementpublic void clear()
clear in interface org.openqa.selenium.WebElementclear in class org.openqa.selenium.remote.RemoteWebElementpublic void sendKeys(CharSequence... keysToSend)
sendKeys in interface org.openqa.selenium.WebElementsendKeys in class org.openqa.selenium.remote.RemoteWebElementpublic void submit()
submit in interface org.openqa.selenium.WebElementsubmit in class org.openqa.selenium.remote.RemoteWebElementpublic org.openqa.selenium.Point getLocation()
getLocation in interface org.openqa.selenium.WebElementgetLocation in class org.openqa.selenium.remote.RemoteWebElementpublic org.openqa.selenium.Dimension getSize()
getSize in interface org.openqa.selenium.WebElementgetSize in class org.openqa.selenium.remote.RemoteWebElementpublic String getImageHash()
public String getImageHash(long timeout,
String... hashes)
timeout - the number of milliseconds to wait before taking the screenshothashes - optional hashes to compare the hashes with
public String saveScreenshot(String filename)
filename - the location to save the screenshot
public String saveScreenshot(String filename,
long timeout)
filename - the location to save the screenshottimeout - the number of milliseconds to wait before taking the screenshot
public String saveScreenshot(String filename,
long timeout,
boolean includeImage,
String... hashes)
filename - the location to save the screenshottimeout - the number of milliseconds to wait before taking the screenshotincludeImage - whether to get the image data. Disable if you just need the MD5 hashhashes - known image hashes
public ScreenShotReply saveScreenshot(long timeout,
String... hashes)
timeout - The number of milliseconds to wait before taking the screenshothashes - A previous screenshot MD5 hash. If it matches the hash of this screenshot then
no image data is returned.
@Deprecated public boolean containsColor(OperaColors... colors)
colors - list of colors to check for.
public String getTagName()
getTagName in interface org.openqa.selenium.WebElementgetTagName in class org.openqa.selenium.remote.RemoteWebElementpublic org.openqa.selenium.Point getLocationOnScreenOnceScrolledIntoView()
getLocationOnScreenOnceScrolledIntoView in interface org.openqa.selenium.internal.LocatablegetLocationOnScreenOnceScrolledIntoView in class org.openqa.selenium.remote.RemoteWebElementpublic int getObjectId()
public int getRuntimeId()
public boolean equals(Object obj)
equals in class org.openqa.selenium.remote.RemoteWebElementpublic int hashCode()
hashCode in class org.openqa.selenium.remote.RemoteWebElementpublic String toString()
toString in class org.openqa.selenium.remote.RemoteWebElement
protected org.openqa.selenium.WebElement findElement(String by,
String using)
findElement in class org.openqa.selenium.remote.RemoteWebElement
protected List<org.openqa.selenium.WebElement> findElements(String by,
String using)
findElements in class org.openqa.selenium.remote.RemoteWebElementpublic org.openqa.selenium.WebElement findElementByName(String using)
findElementByName in interface org.openqa.selenium.internal.FindsByNamefindElementByName in class org.openqa.selenium.remote.RemoteWebElementpublic List<org.openqa.selenium.WebElement> findElementsByName(String using)
findElementsByName in interface org.openqa.selenium.internal.FindsByNamefindElementsByName in class org.openqa.selenium.remote.RemoteWebElement
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic org.openqa.selenium.interactions.internal.Coordinates getCoordinates()
getCoordinates in interface org.openqa.selenium.internal.LocatablegetCoordinates in class org.openqa.selenium.remote.RemoteWebElementpublic String getCssValue(String property)
getCssValue in interface org.openqa.selenium.WebElementgetCssValue in class org.openqa.selenium.remote.RemoteWebElementpublic org.openqa.selenium.WebDriver getWrappedDriver()
getWrappedDriver in interface org.openqa.selenium.internal.WrapsDrivergetWrappedDriver in class org.openqa.selenium.remote.RemoteWebElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||