ui-automation icon indicating copy to clipboard operation
ui-automation copied to clipboard

Issue with multiple arguments when start application

Open gefranks opened this issue 3 years ago • 2 comments

Hello and greetings,

I am trying to start an application with multiple arguments, but it doesn't work as expected. It looks all my arguments are put into a single String object like "--arguement1=value1 --argument2=value2", when my application starts, it use the whole String as a single argument but not two arguments.

Here is my code to start my application: Application application = new Application( new ElementBuilder() .automation(automation) .applicationPath("PAHT\myapplication.exe").applicationArguments("--arg1=value1 --arg2=value2")

after I start my application, I tried to view it in Process Explorer from Microsoft, and I find it shows something like that my application.exe "--arg1=value1 --arg2=value2"

Is there any other ways to make this work?

Thanks

gefranks avatar Mar 24 '21 10:03 gefranks

I am investigating this issue now, sorry for any delay.

mmarquee avatar Jul 01 '21 08:07 mmarquee

I have created a new branch (feature/issues-113) with a untidy fix in it. If you want to text it, there is a demo called MainMultiArgs which runs notepad with 2 arguments - can you replace the Notepad.exe with the program you want to test and see what happens.

mmarquee avatar Jul 01 '21 13:07 mmarquee