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

128
Views
Webdriverio iOS restart app with processArguments

I have iOS app which implemented UI testing with Appium. And when I want to restart app with this code, processArguments are lost. Could anyone tell me how to restart app without losing processArguments or pass processArguments when restart app?

await driver.terminateApp(bundleId);
await driver.activateApp(bundleId);
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

We need to pass arguments in drvier.execute function. Here's the solution.

const restartApp = async () => {
  await driver.terminateApp(bundleId);
  const processArgs = ['--mock-fes-api', '--mock-attester-api']; // your process arguments
  const args = {
    bundleId, // your bundle id
    arguments: processArgs
  }
  await driver.execute('mobile: launchApp', args);
}
about 4 years ago · Santiago Trujillo Report
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!