cheezy/page-object

ElementNotVisibleError is deprecated

anilreddy opened this issue · 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 this will be a problem in Watir. There is a pull request to Watir (watir/watir#867) to address this.

@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/)

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 , can you please provide code examples for when the error is being generated? It would help us track down where the problem is. Thanks.

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