public boolean isElementPresent(String locator) { return commandProcessor.getBoolean("isElementPresent", new String[] {locator,}); }
/** * Verifies that the specified attribute is defined for the element. * * @param elementLocator * an element locator * @param attributeName * a name of an attribute * @return true if the element's attribute is present, false otherwise */ public boolean isAttributePresent(String elementLocator, String attributeName) { return commandProcessor.getBoolean("isAttributePresent", new String[] { elementLocator, attributeName }); }
public boolean isSomethingSelected(String selectLocator) { return commandProcessor.getBoolean("isSomethingSelected", new String[] {selectLocator,}); }
public boolean getWhetherThisWindowMatchWindowExpression(String currentWindowString,String target) { return commandProcessor.getBoolean("getWhetherThisWindowMatchWindowExpression", new String[] {currentWindowString,target,}); }
public boolean isChecked(String locator) { return commandProcessor.getBoolean("isChecked", new String[] {locator,}); }
public boolean isEditable(String locator) { return commandProcessor.getBoolean("isEditable", new String[] {locator,}); }
public boolean getWhetherThisFrameMatchFrameExpression(String currentFrameString,String target) { return commandProcessor.getBoolean("getWhetherThisFrameMatchFrameExpression", new String[] {currentFrameString,target,}); }
public boolean isAlertPresent() { return commandProcessor.getBoolean("isAlertPresent", new String[] {}); }
public boolean isPromptPresent() { return commandProcessor.getBoolean("isPromptPresent", new String[] {}); }
public boolean isConfirmationPresent() { return commandProcessor.getBoolean("isConfirmationPresent", new String[] {}); }
public boolean isTextPresent(String pattern) { return commandProcessor.getBoolean("isTextPresent", new String[] {pattern,}); }
public boolean isVisible(String locator) { return commandProcessor.getBoolean("isVisible", new String[] {locator,}); }
public boolean isOrdered(String locator1,String locator2) { return commandProcessor.getBoolean("isOrdered", new String[] {locator1,locator2,}); }
public boolean isCookiePresent(String name) { return commandProcessor.getBoolean("isCookiePresent", new String[] {name,}); }
@Override public boolean getBoolean(String string, String[] strings) { try { return delegate.getBoolean(string, strings); } catch (RuntimeException ex) { reportError(string, strings, ex); throw ex; } }
@Override public boolean getBoolean(String string, String[] strings) { try { return delegate.getBoolean(string, strings); } catch (RuntimeException ex) { reportError(string, strings, ex); throw ex; } }
boolean verifyElementPresent(final ExtendedSeleniumCommand command, final String[] values) { final String methodName = command.getSeleniumCommand(); if (LOCATOR_COMMANDS.contains(methodName) && !commandProcessor.getBoolean("isElementPresent", new String[] { values[0] })) { LOG.warn("Element " + values[0] + " is not found."); return false; } return true; } }