Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

76
Views
Cómo usar ID o ID de recurso contiene localizador para Android en WebdriverIO

Tengo una interfaz de usuario nativa de Android donde tengo:

  1. Buscar por: id, Selector: 76ggg-unique-ID-o9o
  2. Atributo - clase: android.view.ViewGroup
  3. identificador de recurso: 76ggg-unique-ID-o9o

Ahora quiero crear un selector para este elemento en WebdriverIO donde puedo usar contiene ID único. Intenté seguir pero nada funcionó.

 'strategy': 'css selector', 'strategyVal': '[id*="unique-ID"]'
 'strategy': 'css selector', 'strategyVal': '[id*=unique-ID]'
 'strategy': 'xpath', 'strategyVal': '//*[contains(@id, "unique-ID")]'
 'strategy': 'xpath', 'strategyVal': '//*[@id*="unique-ID"]'
 'strategy': 'xpath', 'strategyVal': '//*[contains(@id, "unique-ID")]'

Cualquier sugerencia es apreciada.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Después de depurar un poco, me di cuenta de que estaba tardando un tiempo en cargar la interfaz de usuario. Después de esperar unos segundos, la estrategia del localizador inferior funcionó.

 'strategy': 'xpath', 'strategyVal': '//android.view.ViewGroup[contains(@resource-id, "unique-ID")]'
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!