Package org.openqa.selenium

Examples of org.openqa.selenium.UnhandledAlertException


          .equals("UIAActionSheet")) {
        return;
      }
      parent = parent.getParentNode();
    }
    throw new UnhandledAlertException("cannot select this element. There is an alert.");
  }
View Full Code Here


  protected Response execute(String driverCommand, Map<String, ?> parameters) {
    if (currentAlert != null) {
      if (!alertWhiteListedCommands.contains(driverCommand)) {
        ((FirefoxTargetLocator) switchTo()).alert()
            .dismiss();
        throw new UnhandledAlertException(driverCommand.toString());
      }
    }

    Response response = super.execute(driverCommand, parameters);
View Full Code Here

TOP

Related Classes of org.openqa.selenium.UnhandledAlertException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.