It does not look like Selenium-WebDriver provides a mechanism for ignoring
specific deprecations. You will have to monkey-patch the error away:
require 'selenium-webdriver'
module Selenium
module WebDriver
module Error # rubocop:disable Metrics/ModuleLength
def self.const_missing(const_name)
super unless DEPRECATED_ERRORS.key?(const_name)
if DEPRECATED_ERRORS[const_name]
#WebDriver.logger.deprecate("Selenium::WebDriver::Error::#{const_name}",
# "#{DEPRECATED_ERRORS[const_name]}
(ensure the driver supports W3C WebDriver specification)")
DEPRECATED_ERRORS[const_name]
else
WebDriver.logger.deprecate(
"Selenium::WebDriver::Error::#{const_name}")
WebDriverError
end
end
end
end
end
Justin
On Friday, May 10, 2019 at 4:16:15 AM UTC-4, rajagopalan madasami wrote:
>
> I meant to ask how can I comment that one?
>
> On Fri, 3 May, 2019, 12:37 AM , <[email protected] <javascript:>> wrote:
>
>> I believe this pull request will address this -
>> https://github.com/watir/watir/pull/867/files
>>
>> Justin
>>
>> On Thursday, May 2, 2019 at 5:53:55 AM UTC-4, [email protected]
>> wrote:
>>>
>>> Hi,
>>>
>>> I am getting this warning now
>>>
>>> 2019-05-02 13:57:16 WARN Selenium [DEPRECATION] Selenium::WebDriver::
>>> Error::ObsoleteElementError is deprecated. Use Selenium::WebDriver::
>>> Error::StaleElementReferenceError (ensure the driver supports W3C
>>> WebDriver specification) instead.
>>>
>>>
>>>
>>> --
>> --
>> Before posting, please read
>> https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
>>
>>
>> In short: search before you ask, be nice.
>>
>> [email protected] <javascript:>
>> http://groups.google.com/group/watir-general
>> [email protected] <javascript:>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Watir General" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
--
Before posting, please read
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
In short: search before you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/watir-general/ef307e86-939c-4c2e-abe4-ee131ade7642%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.