feat: add support for descendant and ancestor flutter locators by sudharsan-selvaraj · Pull Request #2357 · appium/java-client

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@sudharsan-selvaraj

Copy link Copy Markdown

Contributor

Change list

Added new locator strategies AppiumBy.flutterDescendant and AppiumBy.flutterAncestor to support flutter's descendant and ancestor finders.

Types of changes

What types of changes are you proposing/introducing to Java client?
Put an x in the boxes that apply

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@saikrishna321

Copy link Copy Markdown

Member

@sudharsan-selvaraj Please fix the CI for checkstyle

sudharsan-selvaraj reacted with thumbs up emoji

@sudharsan-selvaraj

Copy link Copy Markdown

Contributor Author

sudharsan-selvaraj commented

Oct 9, 2025

edited

Loading

I'm currently looking into the test failure for ios and will address it.

}

static String formatLocator(FlutterBy of, FlutterBy matching, Map<String, Object> properties) {
Map<String, Object> locator = new HashMap<>();
Copy link Copy Markdown

Contributor

Choose a reason for hiding this comment

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

can we also use Map.of like above?

@SrinivasanTarget SrinivasanTarget merged commit 407247b into appium:master

Oct 9, 2025

7 checks passed

Copy link Copy Markdown

@ValeriiMelnyk ValeriiMelnyk left a comment

Choose a reason for hiding this comment

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

🤬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@saikrishna321 saikrishna321 saikrishna321 approved these changes

@valfirst valfirst valfirst approved these changes

@mykola-mokhnach mykola-mokhnach mykola-mokhnach approved these changes

@SrinivasanTarget SrinivasanTarget SrinivasanTarget approved these changes

+1 more reviewer

@ValeriiMelnyk ValeriiMelnyk ValeriiMelnyk approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@sudharsan-selvaraj @saikrishna321 @valfirst @mykola-mokhnach @SrinivasanTarget @ValeriiMelnyk