Thank you, I also located that error.rb file directly and commented that 
error from 

DEPRECATED_ERRORS = {
  IndexOutOfBoundsError: nil,
  NoCollectionError: nil,
  NoStringError: nil,
  NoStringLengthError: nil,
  NoStringWrapperError: nil,
  NoSuchDriverError: nil,
  ElementNotVisibleError: ElementNotInteractableError,
  InvalidElementStateError: ElementN
...
....
...

Thank you.



On Friday, 10 May 2019 22:47:11 UTC+5:30, Justin Ko wrote:
>
> 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]> 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]
>>> 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].
>>> 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/6ff687e7-9ea8-427a-bcf7-5ef83d5020d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to