com.opera.core.systems.scope.handlers
Class PbActionHandler

java.lang.Object
  extended by com.opera.core.systems.model.ScopeActions
      extended by com.opera.core.systems.scope.handlers.PbActionHandler

public class PbActionHandler
extends ScopeActions

This library handles actions for Core 2.5+ Core 2.5 uses a different (binary) protocol and different serializers

Author:
Deniz Turkoglu

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

PbActionHandler

public PbActionHandler(ScopeServices services)
Method Detail

click

public void click(org.openqa.selenium.WebElement element,
                  java.lang.String locator)
Description copied from class: ScopeActions
Creates a native left mouse click (2.4+) or an ecmascript MouseEvent(2.3)

Specified by:
click in class ScopeActions
Parameters:
element - The element to be clicked on top left
locator - The index of the element in elements array

click

public void click(org.openqa.selenium.WebElement element,
                  int x,
                  int y)
Description copied from class: ScopeActions
Creates a native left mouse click (2.4+)

Specified by:
click in class ScopeActions
Parameters:
element - The element to be clicked with x and y coordinates added to top left

get

public void get(java.lang.String url)
Description copied from class: ScopeActions
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

Specified by:
get in class ScopeActions
Parameters:
url - The page to load

rightClick

public void rightClick(org.openqa.selenium.WebElement element)
Description copied from class: ScopeActions
Creates a native right mouse click (2.4+)

Specified by:
rightClick in class ScopeActions
Parameters:
element - The element to be clicked on top left

saveScreenshot

public void saveScreenshot(java.io.File pngFile)
Description copied from class: ScopeActions
Saves the complete page as png file to pngFile (2.4+)

Specified by:
saveScreenshot in class ScopeActions


Copyright © 2011. All Rights Reserved.