Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with multiple arguments when start application #113

Open
gefranks opened this issue Mar 24, 2021 · 2 comments
Open

Issue with multiple arguments when start application #113

gefranks opened this issue Mar 24, 2021 · 2 comments

Comments

@gefranks
Copy link

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

@mmarquee
Copy link
Owner

mmarquee commented Jul 1, 2021

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

@mmarquee
Copy link
Owner

mmarquee commented Jul 1, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants