appium / appium-windows-driver

Appium's interface to WindowsAppDriver provided by Microsoft
Apache License 2.0
133 stars 35 forks source link

Application failed to launch with multiple appArguments values #119

Closed bwomsm1 closed 2 years ago

bwomsm1 commented 2 years ago

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:

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()

Appium Logs: https://github.com/bwomsm1/AppiumLogs/blob/master/win_app_appium.log

bwomsm1 commented 2 years ago

@mykola-mokhnach can you please help with that issue? Thank You!

bwomsm1 commented 2 years ago

Problem solved with the following desire capabilities:

app = C:\\AeroScoutEngineManager\\bin\Rte\\EngineManager.exe
winAppDriverHost = 127.0.0.1:4723
platformName = Windows
platformVersion = 10
automationName = Windows
appArguments = ShellLayout.xml ShellCnf.xml
appWorkingDir = c:\\AeroScoutEngineManager\\bin\\Config

The files ShellLayout.xml and ShellCnf.xml should be placed in c:\\AeroScoutEngineManager\\bin\\Config