-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to Selenium 4.18 - Replace EventFiringWebDriver #381
Update to Selenium 4.18 - Replace EventFiringWebDriver #381
Conversation
…bdriver # Conflicts: # driver-ui/src/main/java/eu/tsystems/mms/tic/testframework/webdrivermanager/WebDriverManagerUtils.java
# Conflicts: # integration-tests/src/test/resources/test.properties
.../main/java/eu/tsystems/mms/tic/testframework/webdrivermanager/VisualEventDriverListener.java
Outdated
Show resolved
Hide resolved
.../main/java/eu/tsystems/mms/tic/testframework/webdrivermanager/VisualEventDriverListener.java
Outdated
Show resolved
Hide resolved
if (!desktopWebDriverRequest.getBaseUrl().isPresent()) { | ||
WebDriverManager.getConfig().getBaseUrl().ifPresent(desktopWebDriverRequest::setBaseUrl); | ||
} | ||
VisualEventDriverListener visualListener = new VisualEventDriverListener(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not instantiating VisualEventDriverListener
only when Testerra.Properties.DEMO_MODE.asBool()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new EventFiringDecorator
gets a list of custom listeners and returns the decorated webdriver, see some lines below. I cannot update a decorated driver with another listener.
And switch or if statements for different ways to create my decorated webdriver make the code more complex.
Description
The listener
EventFiringWebDriver
is deprecated and was also removed in current Selenium trunk (SeleniumHQ/selenium#13200).Selenium now provides
EventFiringDecorator
andWebDriverListener
. This change includes an update to Selenium 4.18.1.There is still an open PR which adds some more methods to
WebDriverListener
we want to use:4.174.18 releasedOther ToDos:
unwrap
methods, maybe not needed any more --> still needed to get orginal driver from decorated one.eventFiringWebdriver
variables towebDriver
Type of change
Please delete options that are not relevant.
Checklist: