cheezy / page-object

Gem to implement PageObject pattern in watir-webdriver and selenium-webdriver
MIT License
653 stars 220 forks source link

ElementNotVisibleError is deprecated #487

Open anilreddy opened 5 years ago

anilreddy commented 5 years ago

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.
jkotests commented 5 years ago

@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.

anilreddy commented 5 years ago

@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 commented 5 years ago

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
jkotests commented 5 years ago

@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.

anilreddy commented 5 years ago

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