diff --git a/appium/src/main/java/eu/tsystems/mms/tic/testframework/mobile/driver/AppiumDriverFactory.java b/appium/src/main/java/eu/tsystems/mms/tic/testframework/mobile/driver/AppiumDriverFactory.java index 4311d23..0d1a57b 100644 --- a/appium/src/main/java/eu/tsystems/mms/tic/testframework/mobile/driver/AppiumDriverFactory.java +++ b/appium/src/main/java/eu/tsystems/mms/tic/testframework/mobile/driver/AppiumDriverFactory.java @@ -238,6 +238,7 @@ public WebDriver setupNewWebDriverSession(WebDriver webDriver, SessionContext se new EventLoggingDriverListener(), visualListener ).decorate(webDriver); + visualListener.driver = decoratedDriver; // Needed to interact with current session // In case of app automation it es not possible to call a URL if (StringUtils.isNotBlank(appiumDriverRequest.getBrowser())) {