Пример #1
0
  private String getCommandOutput(ExtendedSeleniumCommand command, String[] values) {
    try {
      if (command.returnTypeIsArray()) {
        return executeArrayCommand(command.getSeleniumCommand(), values);
      } else {
        return executeCommand(command.getSeleniumCommand(), values);
      }
    } catch (final SeleniumException e) {
      String output = "Execution of command failed: " + e.getMessage();
      LOG.error(output);

      if (!(command.isAssertCommand() || command.isVerifyCommand() || command.isWaitForCommand())) {
        throw e;
      }

      return output;
    }
  }