yandex-qatools / htmlelements

Html Elements is a Java framework providing easy-to-use way of interaction with web-page elements in web-page tests.
Other
271 stars 116 forks source link

Expect StaleElementReferenceException on getText #138

Closed clicman closed 7 years ago

clicman commented 7 years ago

This test always fails. Seems missed exception expectation. Now we expect it.

clicman commented 7 years ago

This is very strange. On my environment mvn clean test fails with StaleElementReferenceException if I not expect it. But on your ci environment exception isn't thrown and my PR fails to pass this test. Any ideas? As I can see mock configured to throw this exception and we should expect it.

clicman commented 7 years ago

Another strange thing. I've gave it to test to two my colleguas. One got exception another one - not. I'm confused.

clicman commented 7 years ago

Redisigned test. Now it works as expected on all environments.

artkoshelev commented 7 years ago

There shouldn't be stale element exception when using htmlelements. If exception occurs, framework re-search required element. This test was designed to check this behavior. Get some investigation why it fails on your env.