Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

132
Vistas
Problem to access to an element of a XCUIElementTypePickerWheel with javascript appium on IOS Native app

I am new in mobile automation tests. I am trying to select an element of an XCUIElementTypePickerWheel. Here is what I did:

screen.js


    selectCountry(country) {
            return -ios predicate string:type=='XCUIElementTypePickerWheel' AND value=='${country}';
            
         }

action_words.js


    iSelectCountry: async function (country) {
            let selector = Screen.selectCountry(country);
            let Country = await $(selector);
            browser.execute("mobile: scroll", [{direction: "down", element: Country}]) //scroll to the element to click
            await Country.click(); },

step_definitions.js


    When(/^I select a country "(.*)"$/, async function (country) {
        await action_words.iSelectCountry(country);
    });

And here is what I get:

Error: Can't call click on element with selector "-ios predicate string:type=='XCUIElementTypePickerWheel' AND value=='Espagne'" because element wasn't found

I am using appium 1.20.2 Node 14.16.0 wdio/cli": "^7.7.3"

Does anyone have an idea why I get this error please? My dropdown list look like this: dropdown list

Thank you for your help

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda