Xceptance / neodymium-library

A test automation library based on common other best practice open source libraries. It adds missing functionalities but does not reinvent the wheel. Just glues stuff together nicely and adds some sprinkles.
MIT License
80 stars 11 forks source link

#181 improve catching sere #185

Closed oomelianchuk closed 3 years ago

oomelianchuk commented 3 years ago

In some of our projects, we have seen SERE being thrown while retrieving the actual display status of the element. In this case, the exception doesn't contain SERE as a cause but only mentions it in the error message.

The changes are meant to catch such exceptions too. This PR also contains changes for SelenideAddonsTest.testSafeSupplier, which are meant to test the new $safe method behavior.

oomelianchuk commented 3 years ago

Please see the comments. Furthermore the tests (testSafe...) are not stable within the range on my system. Please run them often and check if you can reproduce this and stabilize the tests.

I ran the tests multiple times and haven't seen any failure. Could you please show the error message you received, so we can try to guess what was the reason?