com.atlassian.selenium.visualcomparison
Interface VisualComparableClient

All Known Subinterfaces:
SeleniumClient
All Known Implementing Classes:
MockSeleniumClient, SingleBrowserSeleniumClient, WebDriverVisualComparableClient

public interface VisualComparableClient


Method Summary
 void captureEntirePageScreenshot(String filePath)
           
 void evaluate(String command)
          Deprecated. You should use execute(String, Object...) instead.
 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 refreshAfterResize)
           
 boolean waitForJQuery(long waitTimeMillis)
          Wait until all active jQuery AJAX queries have returned -- i.e., no AJAX queries are active.
 

Method Detail

captureEntirePageScreenshot

void captureEntirePageScreenshot(String filePath)

getElementAtPoint

ScreenElement getElementAtPoint(int x,
                                int y)

evaluate

@Deprecated
void evaluate(String command)
Deprecated. You should use execute(String, Object...) instead.

Execute a script in the client.

Parameters:
command - a string of javascript to send to the client.

execute

Object execute(String command,
               Object... arguments)
Execute a script in the client and return the evaluated result.

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

boolean resizeScreen(ScreenResolution resolution,
                     boolean refreshAfterResize)

refreshAndWait

void refreshAndWait()

waitForJQuery

boolean waitForJQuery(long waitTimeMillis)
Wait until all active jQuery AJAX queries have returned -- i.e., no AJAX queries are active.

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.