本文整理了Java中org.openqa.selenium.remote.RemoteWebDriver.quit
方法的一些代码示例,展示了RemoteWebDriver.quit
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteWebDriver.quit
方法的具体详情如下:
包路径:org.openqa.selenium.remote.RemoteWebDriver
类名称:RemoteWebDriver
方法名:quit
暂无
代码示例来源:origin: testcontainers/testcontainers-java
@Override
public void stop() {
if (driver != null) {
try {
driver.quit();
} catch (Exception e) {
LOGGER.debug("Failed to quit the driver", e);
}
}
if (vncRecordingContainer != null) {
try {
vncRecordingContainer.stop();
} catch (Exception e) {
LOGGER.debug("Failed to stop vncRecordingContainer", e);
}
}
super.stop();
}
代码示例来源:origin: la-team/light-admin
@Override
public void quit() {
webDriver.quit();
}
代码示例来源:origin: org.xwiki.platform/xwiki-platform-test-ui
@Override
public void quit()
{
this.wrappedDriver.quit();
}
代码示例来源:origin: sbueringer/kubecon-slides
private void disposeRemoteWebDriver() {
if (driver != null) {
driver.quit();
}
}
}
代码示例来源:origin: org.eclipse.che.selenium/che-selenium-core
@Override
public void quit() {
driver.quit();
}
代码示例来源:origin: com.github.arachnidium/arachnidium-core
/**
* Attempts to shut down {@link RemoteWebDriver} and destroys all related
* information
*/
@Override
public void destroy() {
if (enclosedDriver == null)
return;
try {
enclosedDriver.quit();
} catch (WebDriverException e) { // it may be already dead
return;
}
}
代码示例来源:origin: org.mycore/selenium-utils
public void quit() {
delegate.quit();
}
代码示例来源:origin: com.saucelabs/sebuilder-interpreter
/** @return True if there is another step to execute. */
public boolean hasNext() {
boolean hasNext = stepIndex < script.steps.size() - 1;
if (!hasNext && driver != null && script.closeDriver) {
log.debug("Quitting driver.");
driver.quit();
driver = null;
}
return hasNext;
}
代码示例来源:origin: com.saucelabs/sebuilder-interpreter
/**
* Resets the script's progress and closes the driver if needed.
*/
public void reset() {
log.debug("Resetting test run.");
vars.clear();
stepIndex = -1;
if (driver != null) {
driver.quit();
driver = null;
}
}
代码示例来源:origin: org.jboss.arquillian.extension/arquillian-drone-webdriver
public void destroy() {
if (!destroyed) {
try {
remoteWebDriver.quit();
} catch (WebDriverException e) {
log.log(Level.WARNING, "@Drone {0} has been already destroyed and can't be destroyed again.",
remoteWebDriver.getClass().getSimpleName());
}
}
}
}
代码示例来源:origin: org.arquillian.cube/arquillian-cube-docker-drone
@Override
public void destroyInstance(RemoteWebDriver remoteWebDriver) {
try {
remoteWebDriver.quit();
} catch (WebDriverException e) {
log.log(Level.WARNING, "@Drone {0} has been already destroyed and can't be destroyed again.",
remoteWebDriver.getClass()
.getSimpleName());
}
}
代码示例来源:origin: arquillian/arquillian-extension-drone
public void destroy() {
if (!destroyed) {
try {
remoteWebDriver.quit();
} catch (WebDriverException e) {
log.log(Level.WARNING, "@Drone {0} has been already destroyed and can't be destroyed again.",
remoteWebDriver.getClass().getSimpleName());
}
}
}
}
代码示例来源:origin: arquillian/arquillian-cube
@Override
public void destroyInstance(RemoteWebDriver remoteWebDriver) {
try {
remoteWebDriver.quit();
} catch (WebDriverException e) {
log.log(Level.WARNING, "@Drone {0} has been already destroyed and can't be destroyed again.",
remoteWebDriver.getClass()
.getSimpleName());
}
}
代码示例来源:origin: org.rnorth.test-containers/selenium
@Override
protected void finished(Description description) {
for (RemoteWebDriver driver : drivers) {
driver.quit();
}
for (AbstractContainer container : containers) {
container.stop();
}
}
代码示例来源:origin: UKPLab/argument-reasoning-comprehension-task
public void finishFetching()
{
driver.quit();
service.stop();
}
代码示例来源:origin: org.rnorth/selenium
@Override
protected void finished(Description description) {
for (RemoteWebDriver driver : drivers) {
driver.quit();
}
for (AbstractContainer container : containers) {
container.stop();
}
}
代码示例来源:origin: iainrose/page-objects
@AfterClass(alwaysRun = true)
public void suiteTearDown() {
driver.quit();
}
代码示例来源:origin: stackoverflow.com
@Test
public void sauceIt() throws Exception {
RemoteWebDriver d = createSauceDriver();
//start new har
put("http://localhost:9000/proxy/9091/har");
d.findElement(By.id("menu_footer")).click();
Response har = get("http://localhost:9000/proxy/9091/har");
String harStr = har.asString();
System.out.println(harStr);
d.quit();
代码示例来源:origin: cloudgrey-io/appiumpro
@After
public void tearDown() {
if (driver != null) {
driver.quit();
}
}
代码示例来源:origin: te-con/ehour
@After
public void quitBrowser() {
if (Driver != null) {
try {
if (isTruncateBetweenTests())
clearDatabase();
Driver.quit();
} catch (Exception e) {
//
}
}
}
内容来源于网络,如有侵权,请联系作者删除!