public class WebDriverVisualComparableClient extends Object implements VisualComparableClient
| Constructor and Description |
|---|
WebDriverVisualComparableClient(AtlassianWebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public WebDriverVisualComparableClient(AtlassianWebDriver driver)
public void captureEntirePageScreenshot(String filePath)
captureEntirePageScreenshot in interface VisualComparableClientpublic ScreenElement getElementAtPoint(int x, int y)
getElementAtPoint in interface VisualComparableClientpublic void evaluate(String command)
VisualComparableClientevaluate in interface VisualComparableClientcommand - a string of javascript to send to the client.public Object execute(String command, Object... arguments)
VisualComparableClientexecute in interface VisualComparableClientcommand - a string of javascript to send to the client.arguments - additional arguments to provide to the script.public boolean resizeScreen(ScreenResolution resolution, boolean refresh)
resizeScreen in interface VisualComparableClientpublic void refreshAndWait()
refreshAndWait in interface VisualComparableClientpublic boolean waitForJQuery(long waitTimeMillis)
VisualComparableClientwaitForJQuery in interface VisualComparableClientwaitTimeMillis - the time to wait for everything to finish.Copyright © 2015 Atlassian. All rights reserved.