List of usage examples for org.openqa.selenium WebDriverException DRIVER_INFO
String DRIVER_INFO
To view the source code for org.openqa.selenium WebDriverException DRIVER_INFO.
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 w w. j av a2 s .c o m*/ if (remote.getCapabilities() != null) { ex.addInfo("Capabilities", remote.getCapabilities().toString()); } } throw ex; }