com.atlassian.webdriver.visualcomparison
Class WebDriverVisualComparableClient
java.lang.Object
com.atlassian.webdriver.visualcomparison.WebDriverVisualComparableClient
- All Implemented Interfaces:
- VisualComparableClient
public class WebDriverVisualComparableClient
- extends Object
- implements VisualComparableClient
- Since:
- 2.1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebDriverVisualComparableClient
public WebDriverVisualComparableClient(AtlassianWebDriver driver)
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.