-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
feat: add snapshotMaxDepth to be able to detect deep depth elements #517
feat: add snapshotMaxDepth to be able to detect deep depth elements #517
Conversation
app/src/main/java/io/appium/uiautomator2/core/AxNodeInfoHelper.java
Outdated
Show resolved
Hide resolved
app/src/main/java/io/appium/uiautomator2/model/settings/SnapshotMaxDepth.java
Outdated
Show resolved
Hide resolved
app/src/main/java/io/appium/uiautomator2/model/settings/SnapshotMaxDepth.java
Show resolved
Hide resolved
|
||
@Override | ||
protected void apply(Integer value) { | ||
if (value == null || value < 10 || value > 200) { |
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.
Please move min and max values to constants. I would also think about making it more flexible, for example 1..500
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.
Thanks. Please create one more PR to https://github.com/appium/appium-uiautomator2-driver afterwards to document the newly added setting |
## [5.12.0](v5.11.1...v5.12.0) (2023-06-20) ### Features * add snapshotMaxDepth to be able to detect deep depth elements ([#517](#517)) ([9a40742](9a40742))
🎉 This PR is included in version 5.12.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks! I created the PR. appium/appium-uiautomator2-driver#629 |
Add
snapshotMaxDepth
setting API to be able to detect deep depth elements. Added this parameter as setting API as same as appium-xcuitest-driverissue #516