Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

130
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda