List of usage examples for org.openqa.selenium WebDriverException SESSION_ID
String SESSION_ID
To view the source code for org.openqa.selenium WebDriverException SESSION_ID.
Click Source Link
From source file:com.jhyhh.appium.AndroidDriverWait.java
License:Apache License
@Override protected RuntimeException timeoutException(String message, Throwable lastException) { TimeoutException ex = new TimeoutException(message, lastException); ex.addInfo(WebDriverException.DRIVER_INFO, driver.getClass().getName()); if (driver instanceof RemoteWebDriver) { RemoteWebDriver remote = (RemoteWebDriver) driver; if (remote.getSessionId() != null) { ex.addInfo(WebDriverException.SESSION_ID, remote.getSessionId().toString()); }// w ww.j a va2 s .c o m if (remote.getCapabilities() != null) { ex.addInfo("Capabilities", remote.getCapabilities().toString()); } } throw ex; }