-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to use Selenium 4.24.0 #146
Conversation
Use new FindElements logic from aquality-selenium-core to avoid possible StaleElementReference while iterating WebElements list Add Clear method to ITextBox interface Fix error on clearAndType #145
WalkthroughThis pull request introduces updates to several dependencies in the Changes
Possibly related PRs
Suggested labels
Poem
Tip New review modelWe have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the discussion post on our Discord. New featuresWalkthrough comment now includes:
Notes:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (7)
- pom.xml (1 hunks)
- src/main/java/aquality/selenium/elements/TextBox.java (3 hunks)
- src/main/java/aquality/selenium/elements/interfaces/ITextBox.java (1 hunks)
- src/test/java/tests/integration/ActionTests.java (2 hunks)
- src/test/java/tests/usecases/devtools/DeviceEmulationTest.java (1 hunks)
- src/test/java/tests/usecases/devtools/NetworkSpeedEmulationTest.java (1 hunks)
- src/test/java/tests/usecases/devtools/OverrideUserAgentTest.java (1 hunks)
Files skipped from review due to trivial changes (3)
- pom.xml
- src/test/java/tests/usecases/devtools/DeviceEmulationTest.java
- src/test/java/tests/usecases/devtools/OverrideUserAgentTest.java
Additional comments not posted (5)
src/main/java/aquality/selenium/elements/interfaces/ITextBox.java (1)
18-21
: LGTM!The addition of the
clear()
method to theITextBox
interface is a valid enhancement. It provides a clear contract for implementers to define the behavior of clearing the text in a text box element.src/test/java/tests/usecases/devtools/NetworkSpeedEmulationTest.java (1)
5-5
: LGTM, but verify the test behavior.The update to the import statement for the
ConnectionType
class from version 127 to version 128 of the Selenium DevTools network model is approved.Please verify that the
networkSpeedEmulationTest
still behaves as expected and produces the correct results with the updatedConnectionType
class. Ensure that the emulation of different network conditions (offline, slow, and fast) works as intended and the assertions are met.src/main/java/aquality/selenium/elements/TextBox.java (2)
44-51
: LGTM!The implementation of the
clear()
method is consistent with the other methods in theTextBox
class. It follows the pattern of logging the action, highlighting the element, and performing the action with a retry mechanism. The use ofdoWithRetry
ensures that transient issues during the clear operation are handled gracefully.
78-84
: LGTM!The inclusion of
JavascriptException
in the list of handled exceptions enhances the error handling capabilities of theTextBox
class. It ensures that JavaScript-related exceptions are also subject to the retry mechanism, improving the resilience of the text box interactions.src/test/java/tests/integration/ActionTests.java (1)
136-149
: LGTM!The new
testClear
method is a valuable addition to the test suite. It thoroughly validates the functionality of theclear
method on a text box under different conditions:
- When the text box is initially empty
- After typing a value
- When the
clear
method is called multiple times consecutivelyThe assertions are clear and ensure that the
clear
method behaves as expected in each scenario. The use ofStringUtils.isEmpty
from the Apache Commons Lang library is a good practice to check if the text box's value is empty after the clear operations.Overall, the test method is well-structured and enhances the test coverage for the
clear
functionality.
Update to use Selenium 4.24.0 +semver:feature
Use new FindElements logic from aquality-selenium-core to avoid possible StaleElementReference while iterating WebElements list
Add Clear method to ITextBox interface
Fix error on clearAndType to close #145