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

232
Views
How to catch user even (click on a button) from windows UWP app while running WinAppDriver (Appium)

I need to catch user even and perform some script after it while driver is running

What I want to solve:

  1. Run auto test on UWP app via WinAppDriver

  2. Perform some steps

  3. Wait for user input

  4. If button clicked -> do script, else user continue using app

    import { driver, By2, windowsAppDriverCapabilities } from 'selenium-appium'    
    const capabilites = windowsAppDriverCapabilities(<WinAppId>);
    
    driver.startWithCapabilities(capabilites, 'http://localhost:4723/wd/hub');
    ...
    let someButton = driver.findElement(By2.nativeXpath("//*/ButtonPosition"))
    
    while (true){
      someButton.addEventListener('click', function() {
       <somelogic>
      })
    

TypeError: test.addEventListener is not a function

● Test suite failed to run

WebDriverError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: read ECONNRESET

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!