Page 1 of 2

OpenBrowser Chrome new window

Posted: Thu Sep 07, 2017 1:19 pm
by MB_wiko
Helo together,

we use the code openbrowser to open a new instance of chrome. Unfortunataley no new instance is opened, this code opens a new tab in chrome, if chrome is already opened. How can I open a new instance of chrome in case of an already open chrome instance?

Thanks a lot.

Re: OpenBrowser Chrome new window

Posted: Fri Sep 08, 2017 7:37 am
by odklizec
Hi,

You have to add "--new-window" argument to Open Browser action (via Open Browser properties). This should do the trick.

Re: OpenBrowser Chrome new window

Posted: Wed Sep 20, 2017 10:52 am
by MB_wiko
Thanks for your answer. I tried several times but I get the agrument not into the properties:
Unbenannt.JPG
How can I inserted the argument?

Re: OpenBrowser Chrome new window

Posted: Wed Sep 20, 2017 11:03 am
by odklizec
Hi,

The argument appears to be inserted at correct place, but the argument itself is wrong. It must be --new-window but you entered --new window. There is missing "dash" in your argument!

Re: OpenBrowser Chrome new window

Posted: Wed Sep 20, 2017 12:01 pm
by MB_wiko
Thanks a lot, it works fine.

Re: OpenBrowser Chrome new window

Posted: Fri Jun 01, 2018 6:35 pm
by sstowe
I am not seeing where this property can be added. :( I am not seeing it. Thanks

Re: OpenBrowser Chrome new window

Posted: Mon Jun 04, 2018 7:51 am
by odklizec
Hi,

Just select the OpenBrowser Action in action table, go to Properties pane and here fill the Argument field...
BrowserArgument.png

Re: OpenBrowser Chrome new window

Posted: Mon Jun 04, 2018 8:37 pm
by sstowe
Looks good. Thank you.

Re: OpenBrowser Chrome new window

Posted: Fri Jun 22, 2018 11:56 am
by csolanki
Hey,

I have given Run maximised as —True, but still in selenium node machine (which is a Mac machine) opens a not maximised chrome. I have changed my Mac settings as "Continue where I left", Still it opens small window. How can I make selenium grid invoking as a maximise window.

I am using Ranorex 8.1.2.
Master is windows 10.
Selenium node is MacBook Air.

Any help is appreciated.

Re: OpenBrowser Chrome new window

Posted: Mon Jun 25, 2018 2:35 pm
by qwertzu
Hey csolanki,

what selenium server version do you use? version 3.12.0 is the latest one and the one which I'm currently using.
i haven't tried the Selenium integration on a Mac yet, but on Windows the maximized flag works perfectly fine.
Have you also tried it with Safari?

regards, qwertzu

Re: OpenBrowser Chrome new window

Posted: Mon Jun 25, 2018 3:25 pm
by csolanki
Hi,

I am using the latest version (version 3.12.0). I have only tried with chrome, as my requirement specifies chrome. It would be great if you can try with these specs. Meanwhile I will try with safari.

Selenium Server : version 3.12.0
Node: Mac
master: Windows 10
Ranorex version 8.1.2

Thank you.

Re: OpenBrowser Chrome new window

Posted: Tue Jun 26, 2018 2:14 pm
by odklizec
Hi,

It seems you need to use Java script to maximize the browser window, because Selenium does not have such possibility (yet). See this post:
https://www.ranorex.com/forum/ranorex-7 ... tml#p43161
Or this one:
https://stackoverflow.com/questions/318 ... -2-using-c

Re: OpenBrowser Chrome new window

Posted: Tue Jun 26, 2018 3:24 pm
by csolanki
Okay, I will try that.

Re: OpenBrowser Chrome new window

Posted: Fri Dec 27, 2019 12:35 pm
by Rose@@
Hi,
I tried following your instruction with edge but it didn't work.
Can you just help me?
Thanks

Re: OpenBrowser Chrome new window

Posted: Fri Dec 27, 2019 6:15 pm
by Support Team
Rose@@ wrote:
Fri Dec 27, 2019 12:35 pm
Hi,
I tried following your instruction with edge but it didn't work.
Can you just help me?
Thanks
Hi Rose@@,

You can use a standard Ranorex Open Browser action to open Edge with Ranorex. If you prefer to work in code, you can use the OpenBrowser method. If you continue to experience issues, please provide the exact error that is occurring so we can better understand what the issue is. The more detail you can provide, the better we will be able to assist you.

Kind Regards,
Ned