Skip to content

v2.0.10-beta.0#426

Merged
bs-shobhitkumar merged 1 commit intomasterfrom
release-v2.0.10-beta.0
Feb 28, 2025
Merged

v2.0.10-beta.0#426
bs-shobhitkumar merged 1 commit intomasterfrom
release-v2.0.10-beta.0

Conversation

@bs-shobhitkumar
Copy link
Contributor

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 28, 2025 05:55
@bs-shobhitkumar bs-shobhitkumar merged commit 8ef81b7 into master Feb 28, 2025
8 checks passed
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.

2 participants