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

[Per-4525] ignore region appium elements ios #425

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bs-shobhitkumar
Copy link

@bs-shobhitkumar bs-shobhitkumar commented Feb 25, 2025

The Problem:

  • The getRegionsByElements function needs to handle element identification differently for iOS and Android platforms. The key challenge is that different attributes are available and reliable on each platform. The existing implementation retrieves the class attribute, which isn't available on iOS XCUITest elements, leading to failures in element selection.

Key changes made:

Platform Detection

  • Detect the platform using driver capabilities.
  • Implement platform-specific logic separately
  • Element Attributes Selection Strategy

Android:

  • Primary Attribute: resource-id
  • Fallback Attribute: class

iOS:

  • Primary Attribute: name
  • Fallback Attribute: type

Selector Generation

  • Format: element: {index} {identifier}

@bs-shobhitkumar bs-shobhitkumar requested a review from a team as a code owner February 25, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant