Skip to content

Instantly share code, notes, and snippets.

@martinschneider
Created March 30, 2020 10:17
Show Gist options
  • Save martinschneider/4509f9e0bd6a77d0a2ee1e311ff211bd to your computer and use it in GitHub Desktop.
Save martinschneider/4509f9e0bd6a77d0a2ee1e311ff211bd to your computer and use it in GitHub Desktop.
private WebDriver logDeviceDetails(AppiumDriver<? extends WebElement> driver) {
LOG.info("Testing device: {}, manufacturer: {}, OS version: {}, screen size: {}",
driver.getSessionDetail("deviceName"), driver.getSessionDetail("deviceManufacturer"),
driver.getSessionDetail("platformVersion"), driver.getSessionDetail("deviceScreenSize"));
return driver;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment