Skip to content
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

Merged

Conversation

yoshitaka-ogata
Copy link
Contributor

Add snapshotMaxDepth setting API to be able to detect deep depth elements. Added this parameter as setting API as same as appium-xcuitest-driver

issue #516

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 19, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.


@Override
protected void apply(Integer value) {
if (value == null || value < 10 || value > 200) {
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add constants instead of magic number 45d2701 and e800feb
Also, expand range 1..500.

@mykola-mokhnach
Copy link
Contributor

Thanks. Please create one more PR to https://github.com/appium/appium-uiautomator2-driver afterwards to document the newly added setting

@mykola-mokhnach mykola-mokhnach merged commit 9a40742 into appium:master Jun 20, 2023
github-actions bot pushed a commit that referenced this pull request Jun 20, 2023
## [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))
@github-actions
Copy link

🎉 This PR is included in version 5.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@yoshitaka-ogata
Copy link
Contributor Author

Thanks. Please create one more PR to https://github.com/appium/appium-uiautomator2-driver afterwards to document the newly added setting

Thanks! I created the PR. appium/appium-uiautomator2-driver#629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants