Skip to content
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

Selenium deprecated warning on Ruby2.7 #48

Closed
Th3F0x-code opened this issue Feb 2, 2020 · 5 comments
Closed

Selenium deprecated warning on Ruby2.7 #48

Th3F0x-code opened this issue Feb 2, 2020 · 5 comments

Comments

@Th3F0x-code
Copy link

there are other problems with some gems --> https://pastebin.com/raw/ePVpTSQg

@hahwul
Copy link
Owner

hahwul commented Feb 2, 2020

Here's what I saw on this issue. The point of warning is the selenium package, so I don't know if I can modify it. I'll check and leave a comment.

#45 (comment)

@hahwul
Copy link
Owner

hahwul commented Feb 2, 2020

@Th3F0x-code
First of all, I'll tell you how to avoid the situation. Set the environment variables as shown below.

export RUBYOPT='-W:no-deprecated -W:no-experimental'

This is a Selenium problem and I can't solve it. I think the selenium will solved itself when it is patched.
SeleniumHQ/selenium#7870

@hahwul hahwul pinned this issue Feb 2, 2020
@hahwul hahwul changed the title other problems with ruby Selenium deprecated warning on Ruby2.7 Feb 2, 2020
@Th3F0x-code
Copy link
Author

it worked: D
thanks for your help

@azamet90
Copy link

this command export RUBYOPT='-W:no-deprecated -W:no-experimental'
is not works everytime after reboot it is reverted so how to fix it ?

@Th3F0x-code
Copy link
Author

add this string
export RUBYOPT='-W:no-deprecated -W:no-experimental'
to the end of the .bashrc file

@hahwul hahwul mentioned this issue Jul 16, 2020
@hahwul hahwul unpinned this issue Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants