本文整理了Java中org.openqa.selenium.remote.Response.isError
方法的一些代码示例,展示了Response.isError
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.isError
方法的具体详情如下:
包路径:org.openqa.selenium.remote.Response
类名称:Response
方法名:isError
暂无
代码示例来源:origin: org.seleniumhq.selenium.server/selenium-server-coreless
public String toString() {
return String.format("(%s %s %s: %s)", getSessionId(), getContext(), isError(), getValue());
}
}
代码示例来源:origin: org.seleniumhq.webdriver/webdriver-remote-client
throw new WebDriverException(e);
if (response.isError())
throwIfResponseFailed(response);
代码示例来源:origin: org.seleniumhq.webdriver/webdriver-remote-client
@SuppressWarnings({"unchecked"})
protected Response execute(String commandName, Object... parameters) {
Command command = new Command(sessionId, new Context("foo"), commandName, parameters);
Response response = new Response();
try {
response = executor.execute(command);
amendElementValueIfNecessary(response);
} catch (Exception e) {
response.setError(true);
response.setValue(e.getStackTrace());
}
if (response.isError()) {
return throwIfResponseFailed(response);
}
return response;
}
内容来源于网络,如有侵权,请联系作者删除!