question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows app automation - Application failed to launch with multiple appArguments values

See original GitHub issue

The problem

My windows application is being launched with 2 arguments files. I am adding them to the appArguments field in the capabilities, but the app won’t launch with them.

Appium version: 2.0.0-beta.24 Running appium from CLI.

This is the code which I am trying to execute is mentioned below

Environment

  • Appium version (or git revision) that exhibits the issue: 2.0 Beta
  • Last Appium version that did not exhibit the issue (if applicable): Never tried
  • Desktop OS/version used to run Appium: Windows
  • Node.js version (unless using Appium.app|exe):v16.13.2
  • Npm or Yarn package manager:
  • Mobile platform/version under test: Windows OS app
  • Real device or emulator/simulator:
  • Appium CLI or Appium.app|exe: CLI

Details

If necessary, describe the problem you have been experiencing in more detail.

Link to Appium logs

[Create a GIST which is a paste of your full Appium logs, and link them here. Do NOT paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs! ](https://github.com/bwomsm1/AppiumLogs/blob/master/win_app_appium.log)

Code To Reproduce Issue [ Good To Have ]

from appium.webdriver import Remote
from time import sleep

def main():
    dc = {
        'app': 'C:\\Program Files (x86)\\AeroScout\\AeroScout Engine Manager\\bin\\Rte\\EngineManager.exe',
        'platformName': 'Windows',
        'platformVersion': '10',
        'automationName': 'Windows',
        'appArguments': "C:\\Program Files (x86)\\AeroScout\\AeroScout Engine Manager\\bin\\Config\\ShellLayout.xml C:\Program Files (x86)\\AeroScout\\AeroScout Engine Manager\\bin\\Config\\ShellCnf.xml",
    }
    driver = Remote('127.0.0.1:4723', dc)
    sleep(5)

    print(driver.page_source)

if __name__ == '__main__':
    main()

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KazuCocoacommented, Jan 26, 2022

I think the best way is to ask it in https://github.com/microsoft/WinAppDriver or the community. Basically appium proxies commands to the driver, so the behavior depends on WinAppDriver.

0reactions
bwomsm1commented, Jan 26, 2022

microsoft/WinAppDriver#1673

well, that is indeed my issue I opened there, but no solution yet.

Thank you guys.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Launching WinAppDriver with multiple appArguments not ...
My windows application is being launched with 2 arguments files. I am adding them to the appArguments field in the capabilities, but the...
Read more >
Solved: Error: Invalid number of arguments. Received 1, ex...
I have a Power Automate which is meant to be triggered by clicking a button in my app. I keep getting an error...
Read more >
Set up Desired Capabilities in Windows Desktop App Testing
This article shows you how to configure desired capabilities for Windows Desktop Application testing.
Read more >
Issue with Windows based application automation using ...
I came accross WinAppDriver tool. Looks promising. But currently getting an error when it tries to launch the application under test- {"Status": ...
Read more >
Karate UI
Karate can split a test-suite across multiple machines or Docker containers for execution and aggregate the results. Please refer to the wiki: Distributed ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found