[java] fix "or" condition#17135
Conversation
PR TypeBug fix Description
|
| Relevant files | |||
|---|---|---|---|
| Bug fix |
| ||
| Tests |
|
|
Thank you, @asolntsev for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent After reviewing the change, unless it is a critical fix or a feature that is needed for Selenium We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨No code suggestions found for the PR. |
We need to re-try in case of `NoSuchElementException`, not only `StaleElementReferenceException`. `NoSuchElementException` may be thrown by a page object because its @findby fields are lazy-initialized. Fixes SeleniumHQ#17091
a6c954b to
58bbb1d
Compare
|
Thank you! |
We need to re-try in case of
NoSuchElementException, not onlyStaleElementReferenceException.@ammmze FYI
🔗 Related Issues
Fixes #17091
💥 What does this PR do?
ExpectedConditions.or: now it does re-try when some of conditions throwsNoSuchElementException.ormethod (adds actual value or exception to every condition inor).🔧 Implementation Notes
NoSuchElementExceptionmay be thrown by a page object because its @findby fields are lazy-initialized.🔄 Types of changes