dougnoel / sentinel

A Selenium/Appium framework that enables users to focus on automating web and windows tests, so that automated tests can be written in a non-technical way in the same amount of time as manual tests can be executed.
Apache License 2.0
11 stars 13 forks source link

hasAttribute and doesNotHaveAttribute are throwing when unexpected #417

Closed tyBouch closed 2 years ago

tyBouch commented 2 years ago

The documentation for doesNotHaveAttribute and hasAttribute indicates that a boolean opposing the success condition should be returned on failure. However, the code is instead performing a timeout on failure. Using a .ignoring for timeoutexception does not work, so a try catch should be added to ensure that if a timeout is thrown, the correct return is sent rather than an exception.