|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opera.core.systems.model.ScopeActions
public abstract class ScopeActions
ScopeActions handles actions that differ from Core 2.3 and 2.4+, it calls the appropriate action depending on the spec as the spec varies
| Field Summary | |
|---|---|
protected IOperaExec |
execService
|
protected IEcmaScriptDebugger |
scriptDebugger
|
protected ScopeServices |
services
|
| Constructor Summary | |
|---|---|
ScopeActions(ScopeServices services)
|
|
| Method Summary | |
|---|---|
abstract void |
click(org.openqa.selenium.WebElement element,
int x,
int y)
Creates a native left mouse click (2.4+) |
abstract 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) |
abstract 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 |
abstract void |
rightClick(org.openqa.selenium.WebElement element)
Creates a native right mouse click (2.4+) |
abstract 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 |
| Field Detail |
|---|
protected final ScopeServices services
protected final IEcmaScriptDebugger scriptDebugger
protected final IOperaExec execService
| Constructor Detail |
|---|
public ScopeActions(ScopeServices services)
| Method Detail |
|---|
public abstract void click(org.openqa.selenium.WebElement element,
java.lang.String locator)
element - The element to be clicked on top leftlocator - The index of the element in elements array
public abstract void click(org.openqa.selenium.WebElement element,
int x,
int y)
element - The element to be clicked with x and y coordinates added to top left
java.lang.UnsupportedOperationException - on 2.3public abstract void rightClick(org.openqa.selenium.WebElement element)
element - The element to be clicked on top left
java.lang.UnsupportedOperationException - on 2.3public abstract void get(java.lang.String url)
url - The page to loadpublic abstract void saveScreenshot(java.io.File pngFile)
java.lang.UnsupportedOperationException - on 2.3
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||