mobile-dev-inc / maestro

Painless Mobile UI Automation
https://maestro.mobile.dev/
Apache License 2.0
5.88k stars 281 forks source link

Need help pulling in selectors #2099

Closed Skeniston489 closed 1 month ago

Skeniston489 commented 1 month ago

Is there an existing issue for this?

Steps to reproduce

  1. Check my syntax!

Actual results

Hello! I am pulling in selectors from my android/ios js file but when I run my test, Maestro is adding "" around all id's, causing them to be identified as text and then fail. This selector js file approach works fine for my subflows.

navigationTabs.js ` // Bottom tabs for navigating the app - Android

output.navigationTabs = { usageTab: 'com.telus.myaccount.dev:id/mobility_usage', billingTab: 'com.telus.myaccount.dev:id/mobility_billing', plansAndDevicesTab: 'com.telus.myaccount.dev:id/mobility_plans_travel', offersTab: 'com.telus.myaccount.dev:id/offers', };`

My test: `appId: ${output.appId} name: Test tabs navigation env: USERNAME: ## PASSWORD: ## onFlowStart:

Results: ![Uploading Screenshot 2024-10-16 at 2.55.04 PM.png…]()

Expected results

Test to correctly identify selectors as id's

About app

This is a closed-source app

About environment

macOS: 14.7, Apple M1

Logs

Logs ``` ```

Maestro version

1.38.1

How did you install Maestro?

install script (https://get.maestro.mobile.dev)

Anything else?

No response

linear[bot] commented 1 month ago

MA-2349 Need help pulling in selectors

github-actions[bot] commented 4 weeks ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. Thank you for helping keep us our issue tracker clean!