Skip to content

EventFiringWebDriver has been deprecated since selenium:4.0.0-beta2 #301

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

Open
Mjl33 opened this issue Sep 28, 2021 · 1 comment
Open

EventFiringWebDriver has been deprecated since selenium:4.0.0-beta2 #301

Mjl33 opened this issue Sep 28, 2021 · 1 comment
Labels
enhancement Request for new feature or enhancement

Comments

@Mjl33
Copy link
Member

Mjl33 commented Sep 28, 2021

Is your feature request related to a problem? Please describe.
EventFiringWebDriver has been deprecated since selenium:4.0.0-beta2

Describe the solution you'd like
Refactor to the new EventFiringDecorator and WebDriverListeners.
https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/events/EventFiringWebDriver.html

Describe alternatives you've considered

Additional context

@Mjl33
Copy link
Member Author

Mjl33 commented Dec 18, 2021

the Selenium 4's way of casting RemoteWebDriver
WebDriver webDriver = UITestLifecycle.get().getWebDriver();
RemoteWebDriver remoteDriver = (RemoteWebDriver) webDriver;
remoteDriver.setFileDetector(new LocalFileDetector());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request for new feature or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant