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

129
Views
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
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!