com.atlassian.webdriver.visualcomparison
Class WebDriverVisualComparableClient

java.lang.Object
  extended by com.atlassian.webdriver.visualcomparison.WebDriverVisualComparableClient
All Implemented Interfaces:
VisualComparableClient

public class WebDriverVisualComparableClient
extends Object
implements VisualComparableClient

Since:
2.1

Constructor Summary
WebDriverVisualComparableClient(AtlassianWebDriver driver)
           
 
Method Summary
 void captureEntirePageScreenshot(String filePath)
           
 void evaluate(String command)
          Execute a script in the client.
 Object execute(String command, Object... arguments)
          Execute a script in the client and return the evaluated result.
 ScreenElement getElementAtPoint(int x, int y)
           
 void refreshAndWait()
           
 boolean resizeScreen(ScreenResolution resolution, boolean refresh)
           
 boolean waitForJQuery(long waitTimeMillis)
          Wait until all active jQuery AJAX queries have returned -- i.e., no AJAX queries are active.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDriverVisualComparableClient

public WebDriverVisualComparableClient(AtlassianWebDriver driver)
Method Detail

captureEntirePageScreenshot

public void captureEntirePageScreenshot(String filePath)
Specified by:
captureEntirePageScreenshot in interface VisualComparableClient

getElementAtPoint

public ScreenElement getElementAtPoint(int x,
                                       int y)
Specified by:
getElementAtPoint in interface VisualComparableClient

evaluate

public void evaluate(String command)
Description copied from interface: VisualComparableClient
Execute a script in the client.

Specified by:
evaluate in interface VisualComparableClient
Parameters:
command - a string of javascript to send to the client.

execute

public Object execute(String command,
                      Object... arguments)
Description copied from interface: VisualComparableClient
Execute a script in the client and return the evaluated result.

Specified by:
execute in interface VisualComparableClient
Parameters:
command - a string of javascript to send to the client.
arguments - additional arguments to provide to the script.
Returns:
the evaluated result of the javascript.

resizeScreen

public boolean resizeScreen(ScreenResolution resolution,
                            boolean refresh)
Specified by:
resizeScreen in interface VisualComparableClient

refreshAndWait

public void refreshAndWait()
Specified by:
refreshAndWait in interface VisualComparableClient

waitForJQuery

public boolean waitForJQuery(long waitTimeMillis)
Description copied from interface: VisualComparableClient
Wait until all active jQuery AJAX queries have returned -- i.e., no AJAX queries are active.

Specified by:
waitForJQuery in interface VisualComparableClient
Parameters:
waitTimeMillis - the time to wait for everything to finish.
Returns:
true if no AJAX query is active, false otherwise.


Copyright © 2014 Atlassian. All rights reserved.