page-object icon indicating copy to clipboard operation
page-object copied to clipboard

ElementNotVisibleError is deprecated

Open anilreddy opened this issue 5 years ago • 5 comments

While am using the wait conditions in the pageobject am getting the following error. Can any one resolve this issue.

19-08-16 08:23:42 WARN Selenium [DEPRECATION] Selenium::WebDriver::Error::ElementNotVisibleError is deprecated. Use Selenium::WebDriver::Error::ElementNotInteractableError (ensure the driver supports W3C WebDriver specification) instead.

anilreddy avatar Aug 19 '19 06:08 anilreddy

@anilreddy this will be a problem in Watir. There is a pull request to Watir (https://github.com/watir/watir/pull/867) to address this.

jkotests avatar Aug 19 '19 17:08 jkotests

@jkotests I am getting these warnings as well it is in pageobject.

2019-09-23 01:27:54 WARN Watir ["visible_element"] #visible? behavior will be changing slightly, consider switching to #present? (more details: http://watir.com/element-existentialism/)

anilreddy avatar Sep 23 '19 06:09 anilreddy

This one as well.

2019-09-23 01:42:51 WARN Watir [DEPRECATION] ["stale_present"] Checking `#present? == false` to determine a stale element is deprecated. Use `#stale? == true` instead; see explanation for this deprecation: http://watir.com/staleness-changes

anilreddy avatar Sep 23 '19 06:09 anilreddy

@anilreddy , can you please provide code examples for when the error is being generated? It would help us track down where the problem is. Thanks.

jkotests avatar Sep 23 '19 12:09 jkotests

Am trying to find similar example which I got in the project. I will post it once I find it.

anilreddy avatar Sep 30 '19 11:09 anilreddy