public void clickAt(String locator,String coordString) { commandProcessor.doCommand("clickAt", new String[] {locator,coordString,}); }
public void mouseOver(String locator) { commandProcessor.doCommand("mouseOver", new String[] {locator,}); }
public void mouseDownRight(String locator) { commandProcessor.doCommand("mouseDownRight", new String[] {locator,}); }
public void mouseDownRightAt(String locator,String coordString) { commandProcessor.doCommand("mouseDownRightAt", new String[] {locator,coordString,}); }
public void mouseUpRightAt(String locator,String coordString) { commandProcessor.doCommand("mouseUpRightAt", new String[] {locator,coordString,}); }
public void allowNativeXpath(String allow) { commandProcessor.doCommand("allowNativeXpath", new String[] {allow,}); }
/** * Simulates a user hovering a mouse over the specified element at specific coordinates relative to element. * * @param locator * element's locator * @param coordString * specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the * locator. */ public void mouseOverAt(String locator, String coordString) { commandProcessor.doCommand("mouseOverAt", new String[] { locator, coordString }); }
/** * Simulates a user hovering a mouse out of the specified element at specific coordinates relative to element. * * @param locator * element's locator * @param coordString * specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the * locator. */ public void mouseOutAt(String locator, String coordString) { commandProcessor.doCommand("mouseOutAt", new String[] { locator, coordString }); }
/** * Aligns screen to top (resp. bottom) of element given by locator. * * @param locator * of element which should be screen aligned to * @param alignToTop * should be top border of screen aligned to top border of element */ public void scrollIntoView(String locator, String alignToTop) { commandProcessor.doCommand("scrollIntoView", new String[] { locator, alignToTop }); }
public void doCommand(String command, String param1, String param2) { String[] array = new String[] { param1, param2 }; if (param2 == null) { array = new String[] { param1 }; } commandProcessor.doCommand(command, array); } }
public void keyPress(String locator,String keySequence) { commandProcessor.doCommand("keyPress", new String[] {locator,keySequence,}); }
public void controlKeyUp() { commandProcessor.doCommand("controlKeyUp", new String[] {}); }
public void mouseUpRight(String locator) { commandProcessor.doCommand("mouseUpRight", new String[] {locator,}); }
public void refresh() { commandProcessor.doCommand("refresh", new String[] {}); }
public void useXpathLibrary(String libraryName) { commandProcessor.doCommand("useXpathLibrary", new String[] {libraryName,}); }
private String executeCommand(String methodName, final String[] values) { String output = commandProcessor.doCommand(methodName, values); if (output != null && LOG.isDebugEnabled()) { LOG.debug("Command processor returned '" + output + "'"); } return output; }
private void waitForPageLoadIfNeeded(ExtendedSeleniumCommand command) { if (command.isAndWaitCommand()) { commandProcessor.doCommand("waitForPageToLoad", new String[] { "" + timeout }); } }
@Override public String doCommand(String command, String[] args) { try { return delegate.doCommand(command, args); } catch (RuntimeException ex) { reportError(command, args, ex); throw ex; } }
@Override public String doCommand(String command, String[] args) { try { return delegate.doCommand(command, args); } catch (RuntimeException ex) { reportError(command, args, ex); throw ex; } }
public void openAbsoluteURL(String url, long timeoutMillis) { // Instead of calling super.open(String,long) this method uses the commandProcessor directly in order to set the ignoreResponseCode flag. // See CONFDEV-3185 final Boolean ignoreResponseCode = Boolean.TRUE; long startTime = System.currentTimeMillis(); commandProcessor.doCommand("open", new String[]{url, ignoreResponseCode.toString()}); super.waitForPageToLoad(String.valueOf(timeoutMillis)); long pageLoadedTime = System.currentTimeMillis(); waitForScriptsToLoad(); long waitScriptLoadedTime = System.currentTimeMillis(); log.info(String.format("openAbsoluteURL(%s) %sms waitForPageToLoad, %sms waitForScriptsToLoad", url, String.valueOf(pageLoadedTime - startTime), String.valueOf(waitScriptLoadedTime - pageLoadedTime))); }