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

115
Views
Swipe Automation - WebdriverIO - javascript Mobile

I'm new to javascript and I'm following this code but when starting automation it doesn't slide down page. (mobile)

    `$(FORMS_ICON_HOME_SCREEN).click()
    const {height} = driver.getWindowSize()
    const anchorPercentage = 50
    const startPointPercentage = 90
    const endPointPercentage = 10

    const anchor = height * anchorPercentage / 100
    const startPoint = height * startPointPercentage / 100
    const endPoint = height * endPointPercentage / 100

    await $(FORM_HEADER_TEXT).click()
    driver.touchPerform([
        {
            action: 'press',
            options: {
                x: anchor,
                y: startPoint
            }
        },
        {
            action: 'wait',
            options: {
                ms: 1000
            }
        },
        {
            action: 'moveTo',
            options: {
                x: anchor,
                y: endPoint
            }
        },
        {
            action: 'release',
            options: {}
        }
    ])
    await $(ACTIVE_BUTTON).click()
   });
  });

` As I'm starting, putting as much detail as possible, please. Thank u

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!