Windows app automation - Application failed to launch with multiple appArguments values
See original GitHub issueThe 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:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
well, that is indeed my issue I opened there, but no solution yet.
Thank you guys.