|
||||||||||
| 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
Extends the default WebElement with Opera specific methods.
| Field Summary | |
|---|---|
protected java.util.logging.Logger |
logger
|
| Fields inherited from class org.openqa.selenium.remote.RemoteWebElement |
|---|
id, mouse |
| Constructor Summary | |
|---|---|
OperaWebElement(OperaDriver parent,
int objectId)
|
|
| Method Summary | |
|---|---|
java.lang.String |
callMethod(java.lang.String method)
Calls the method and parses the result, the result must be a string |
void |
clear()
|
void |
click()
|
void |
click(int times)
Click this element many times. |
void |
click(int x,
int y)
Click the element at the given x, y offset from the top left. |
boolean |
containsColor(OperaColors... colors)
|
void |
dragAndDropBy(int x,
int y)
Deprecated. |
void |
dragAndDropOn(org.openqa.selenium.WebElement element)
Deprecated. |
boolean |
equals(java.lang.Object obj)
|
protected void |
finalize()
|
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by)
|
protected org.openqa.selenium.WebElement |
findElement(java.lang.String by,
java.lang.String using)
|
org.openqa.selenium.WebElement |
findElementByName(java.lang.String using)
|
java.util.List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by)
|
protected java.util.List<org.openqa.selenium.WebElement> |
findElements(java.lang.String by,
java.lang.String using)
|
java.util.List<org.openqa.selenium.WebElement> |
findElementsByName(java.lang.String using)
|
java.lang.String |
getAttribute(java.lang.String attribute)
|
org.openqa.selenium.interactions.internal.Coordinates |
getCoordinates()
|
java.lang.String |
getCssValue(java.lang.String property)
|
java.lang.String |
getElementName()
Get the tag name of this element. |
java.lang.String |
getImageHash()
Takes a screenshot of the area this element's bounding-box covers and returns the MD5 hash. |
java.lang.String |
getImageHash(long timeout,
java.lang.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()
|
java.lang.String |
getTagName()
|
java.lang.String |
getText()
|
java.lang.String |
getValue()
Deprecated. |
org.openqa.selenium.WebDriver |
getWrappedDriver()
|
int |
hashCode()
|
void |
hover()
Deprecated. Use mouseOver() |
boolean |
isDisplayed()
|
boolean |
isEnabled()
|
boolean |
isSelected()
|
boolean |
isVisible()
Deprecated. Use isDisplayed() instead |
void |
middleClick()
Click the middle mouse button at the top left of the element. |
void |
mouseDown()
Presses the left mouse button down on the top left of the element. |
void |
mouseOut()
Moves the mouse from the top left of the element to the top left of the page, generating a mouseOut event. |
void |
mouseOver()
|
void |
mouseUp()
Releases the left mouse button at the top left of the element. |
void |
rightClick()
Right clicks on the element. |
ScreenShotReply |
saveScreenshot(long timeout,
java.lang.String... hashes)
Take a screenshot of the area this element's bounding-box covers. |
java.lang.String |
saveScreenshot(java.lang.String filename)
Take a screenshot of the area this element's bounding-box covers. |
java.lang.String |
saveScreenshot(java.lang.String filename,
long timeout)
Take a screenshot of the area this element covers. |
java.lang.String |
saveScreenshot(java.lang.String filename,
long timeout,
boolean includeImage,
java.lang.String... hashes)
|
void |
sendKeys(java.lang.CharSequence... keysToSend)
|
void |
setSelected()
Deprecated. Please use "click" instead |
static void |
sleep(long ms)
|
void |
submit()
|
boolean |
toggle()
Deprecated. To be removed. Determine the current state using isSelected() |
java.lang.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, setId, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.logging.Logger logger
| Constructor Detail |
|---|
public OperaWebElement(OperaDriver parent,
int objectId)
| Method Detail |
|---|
public int getObjectId()
public int getRuntimeId()
public final java.lang.String callMethod(java.lang.String method)
method - the method to call
public void rightClick()
@Deprecated public void hover()
mouseOver()
public void mouseOver()
public void mouseOut()
public void mouseDown()
public void mouseUp()
public void click(int times)
times - The number of times to clickpublic void middleClick()
public void click()
click in interface org.openqa.selenium.WebElementclick in class org.openqa.selenium.remote.RemoteWebElement
public void click(int x,
int y)
x - The distance from the left to clicky - The distance from the top to clickpublic 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 java.util.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 java.lang.String getAttribute(java.lang.String attribute)
getAttribute in interface org.openqa.selenium.WebElementgetAttribute in class org.openqa.selenium.remote.RemoteWebElementpublic java.lang.String getElementName()
public java.lang.String getText()
getText in interface org.openqa.selenium.WebElementgetText in class org.openqa.selenium.remote.RemoteWebElement@Deprecated public java.lang.String getValue()
public 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.RemoteWebElement@Deprecated public boolean isVisible()
isDisplayed() instead
public void clear()
clear in interface org.openqa.selenium.WebElementclear in class org.openqa.selenium.remote.RemoteWebElementpublic void sendKeys(java.lang.CharSequence... keysToSend)
sendKeys in interface org.openqa.selenium.WebElementsendKeys in class org.openqa.selenium.remote.RemoteWebElement@Deprecated public void setSelected()
setSelected in class org.openqa.selenium.remote.RemoteWebElementpublic void submit()
submit in interface org.openqa.selenium.WebElementsubmit in class org.openqa.selenium.remote.RemoteWebElement@Deprecated public boolean toggle()
isSelected()
toggle in class org.openqa.selenium.remote.RemoteWebElementpublic static void sleep(long ms)
@Deprecated
public void dragAndDropBy(int x,
int y)
@Deprecated public void dragAndDropOn(org.openqa.selenium.WebElement element)
public 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 java.lang.String getImageHash()
public java.lang.String getImageHash(long timeout,
java.lang.String... hashes)
timeout - the number of milliseconds to wait before taking the screenshothashes - optional hashes to compare the hashes with
public java.lang.String saveScreenshot(java.lang.String filename)
filename - The location to save the screenshot
public java.lang.String saveScreenshot(java.lang.String filename,
long timeout)
filename - The location to save the screenshottimeout - The number of milliseconds to wait before taking the screenshot
public java.lang.String saveScreenshot(java.lang.String filename,
long timeout,
boolean includeImage,
java.lang.String... hashes)
public ScreenShotReply saveScreenshot(long timeout,
java.lang.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.public boolean containsColor(OperaColors... colors)
public java.lang.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 boolean equals(java.lang.Object obj)
equals in class org.openqa.selenium.remote.RemoteWebElementpublic int hashCode()
hashCode in class org.openqa.selenium.remote.RemoteWebElementpublic java.lang.String toString()
toString in class java.lang.Object
protected org.openqa.selenium.WebElement findElement(java.lang.String by,
java.lang.String using)
findElement in class org.openqa.selenium.remote.RemoteWebElement
protected java.util.List<org.openqa.selenium.WebElement> findElements(java.lang.String by,
java.lang.String using)
findElements in class org.openqa.selenium.remote.RemoteWebElementpublic org.openqa.selenium.WebElement findElementByName(java.lang.String using)
findElementByName in interface org.openqa.selenium.internal.FindsByNamefindElementByName in class org.openqa.selenium.remote.RemoteWebElementpublic java.util.List<org.openqa.selenium.WebElement> findElementsByName(java.lang.String using)
findElementsByName in interface org.openqa.selenium.internal.FindsByNamefindElementsByName in class org.openqa.selenium.remote.RemoteWebElement
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic org.openqa.selenium.interactions.internal.Coordinates getCoordinates()
getCoordinates in interface org.openqa.selenium.internal.LocatablegetCoordinates in class org.openqa.selenium.remote.RemoteWebElementpublic java.lang.String getCssValue(java.lang.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 | |||||||||