Discussion:
[selenium-users] Can deprecation warnings be turned off?
Kent S
2018-11-21 16:46:58 UTC
Permalink
Is there a way to turn off the warning that PhantomJS is deprecated?

At the moment, I am working in an environment where Chrome and Firefox are
not available. I am also working to fix that, but for the moment I must use
Phantom. I don't need to get the warning every single time. The first time
was quite sufficient.

Any way to turn it off?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/50fa6da5-3b9a-4363-8a20-3372a19e71a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ashwin Balaji Kuppuraj
2018-11-22 10:53:07 UTC
Permalink
What is the warning message are you getting?
Post by Kent S
Is there a way to turn off the warning that PhantomJS is deprecated?
At the moment, I am working in an environment where Chrome and Firefox are
not available. I am also working to fix that, but for the moment I must use
Phantom. I don't need to get the warning every single time. The first time
was quite sufficient.
Any way to turn it off?
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/50fa6da5-3b9a-4363-8a20-3372a19e71a5%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/50fa6da5-3b9a-4363-8a20-3372a19e71a5%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANwYZ4zJyJ-tidCvA3eSgCYj8YVNBGQPDJuD4KfAw3b9nLNEfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Kent S
2018-11-22 16:41:49 UTC
Permalink
Thanks for responding. It says, "Selenium support for PhantomJS has been
deprecated, please use headless versions of Chrome or Firefox instead."

And to answer my own question, I found the source of the warning in
webdriver.py in the selenium/webdriver/phantomjs directory and commented it
out. Problem solved.

On Thursday, November 22, 2018 at 2:54:32 AM UTC-8, Ashwin Balaji Kuppuraj
Post by Ashwin Balaji Kuppuraj
What is the warning message are you getting?
Post by Kent S
Is there a way to turn off the warning that PhantomJS is deprecated?
At the moment, I am working in an environment where Chrome and Firefox
are not available. I am also working to fix that, but for the moment I must
use Phantom. I don't need to get the warning every single time. The first
time was quite sufficient.
Any way to turn it off?
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/50fa6da5-3b9a-4363-8a20-3372a19e71a5%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/50fa6da5-3b9a-4363-8a20-3372a19e71a5%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8874a5fb-8e86-4971-b12f-ec91fb5ae54a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Joe Ward
2018-11-23 19:49:42 UTC
Permalink
It's coming from this file:

https://github.com/SeleniumHQ/selenium/blob/master/py/selenium/webdriver/phantomjs/webdriver.py

Your options are:

1: Stop using a PhantomJS as it's deprecated and now unfit for use.
2: Create a fork of Selenium where the warning no longer exists.
3: Set the logging level to one where you do not see messages for 'warn'.

I hope this helps.
Post by Kent S
Thanks for responding. It says, "Selenium support for PhantomJS has been
deprecated, please use headless versions of Chrome or Firefox instead."
And to answer my own question, I found the source of the warning in
webdriver.py in the selenium/webdriver/phantomjs directory and commented it
out. Problem solved.
On Thursday, November 22, 2018 at 2:54:32 AM UTC-8, Ashwin Balaji Kuppuraj
Post by Ashwin Balaji Kuppuraj
What is the warning message are you getting?
Post by Kent S
Is there a way to turn off the warning that PhantomJS is deprecated?
At the moment, I am working in an environment where Chrome and Firefox
are not available. I am also working to fix that, but for the moment I must
use Phantom. I don't need to get the warning every single time. The first
time was quite sufficient.
Any way to turn it off?
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/50fa6da5-3b9a-4363-8a20-3372a19e71a5%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/50fa6da5-3b9a-4363-8a20-3372a19e71a5%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/8874a5fb-8e86-4971-b12f-ec91fb5ae54a%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/8874a5fb-8e86-4971-b12f-ec91fb5ae54a%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJPyTs2KMWpz3Z1b4x-VVsd8%2BNPEnmq0w%3DRjwfGNOn6ohXmFng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...