|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opera.core.systems.model.ScopeActions
com.opera.core.systems.scope.handlers.PbActionHandler
public class PbActionHandler
This library handles actions for Core 2.5+ Core 2.5 uses a different (binary) protocol and different serializers
| Field Summary |
|---|
| Fields inherited from class com.opera.core.systems.model.ScopeActions |
|---|
execService, scriptDebugger, services |
| Constructor Summary | |
|---|---|
PbActionHandler(ScopeServices services)
|
|
| Method Summary | |
|---|---|
void |
click(org.openqa.selenium.WebElement element,
int x,
int y)
Creates a native left mouse click (2.4+) |
void |
click(org.openqa.selenium.WebElement element,
java.lang.String locator)
Creates a native left mouse click (2.4+) or an ecmascript MouseEvent(2.3) |
void |
get(java.lang.String url)
Loads the specified url via Opera action 'Go' (2.4+) or script injection (2.3) 2.4+ interacts directly with address bar allowing script injection and urls without protocol |
void |
rightClick(org.openqa.selenium.WebElement element)
Creates a native right mouse click (2.4+) |
void |
saveScreenshot(java.io.File pngFile)
Saves the complete page as png file to pngFile (2.4+) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PbActionHandler(ScopeServices services)
| Method Detail |
|---|
public void click(org.openqa.selenium.WebElement element,
java.lang.String locator)
ScopeActions
click in class ScopeActionselement - The element to be clicked on top leftlocator - The index of the element in elements array
public void click(org.openqa.selenium.WebElement element,
int x,
int y)
ScopeActions
click in class ScopeActionselement - The element to be clicked with x and y coordinates added to top leftpublic void get(java.lang.String url)
ScopeActions
get in class ScopeActionsurl - The page to loadpublic void rightClick(org.openqa.selenium.WebElement element)
ScopeActions
rightClick in class ScopeActionselement - The element to be clicked on top leftpublic void saveScreenshot(java.io.File pngFile)
ScopeActions
saveScreenshot in class ScopeActions
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||