Skip to content

Manager#logs deprecation warning after upgrading to Selenium 4.0 #34

Open
@TamasGombos

Description

@TamasGombos

Hi!

After I updated my gemfiles to use Selenium 4.0, I received a few of these warnings:
2021-10-19 13:48:26 WARN Selenium [DEPRECATION] Manager#logs is deprecated. Use Chrome::Driver#logs instead.

After a few hours of research, I found out that they deprecated the use of Manager:
https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES#L36

The workaround for me was to remove Manage from here:

After I removed it, and reran my tests, the deprecation warnings disappeared, and the console log reports were generated just fine.

I know that currently capybara-chromedriver-logger supports Selenium > 3 and Selenium < 4, but maybe for future versions it would be cool to handle this deprecation warning.

I am glad to help with more information, or anything needed.
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions