Skip to content

Instantly share code, notes, and snippets.

@martinschneider
Created March 30, 2020 10:45
Show Gist options
  • Save martinschneider/c28603ecaf2a07f6c4cf4312e3f9248a to your computer and use it in GitHub Desktop.
Save martinschneider/c28603ecaf2a07f6c4cf4312e3f9248a to your computer and use it in GitHub Desktop.
private WebDriver logAppInfo(AppiumDriver<? extends WebElement> driver) {
String appPath = driver.getSessionDetail("app").toString();
if (appPath != null) {
LOG.info("Application: {}", applicationInfoService.getAppInfo(appPath));
}
return driver;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment