Page 1 of 1

Chrome in different Lanaguages

Posted: Wed Sep 25, 2019 2:02 pm
by cs97jjm3
hello does anyone have experience of running same test in did Chrome Languages?

I am using
cd "\Program Files (x86)\Google\Chrome\Application\"
chrome.exe --lang=%Lang% --user-data-dir=c:\Chrome\chrome-profile-%Lang% "www.mywebroster.com"

to open the browser from a batch file and using CSV for the Lang setting.


The problem I have is that Ranorex is not seeing anything when I open via command line..... I am just trying to type user name etc ... if I open SPY up it only sees that Chrome as a container and I cannot select the fields

Re: Chrome in different Lanaguages

Posted: Wed Sep 25, 2019 2:41 pm
by odklizec
Hi,

This is most probably caused by missing Ranorex plugin in Chrome. Basically, Ranorex instruments Chrome (default installation of Chrome), during Ranorex setup. Eventually, it can be instrumented during OpenBrowser action. However, if you are running Chrome from command line and it creates new profile, this new instance of Chrome is not instrumented and therefore, Ranorex cannot track DOM and its elements. Therefore, you must either instrument it manually (or command line), or open Chrome with Open Browser action with enabled Instrument flag. I would suggest to try Open Browser action.

Re: Chrome in different Lanaguages

Posted: Thu Sep 26, 2019 9:44 am
by cs97jjm3
Thanks but I have added the Ranorex plugin in each profile?
is there another way I have to test over 10 different languages?

Re: Chrome in different Lanaguages

Posted: Thu Sep 26, 2019 10:10 am
by odklizec
Hi,

It seems that the plugin integration in Chrome, if started from command line and with arguments like in your example, is somehow corrupted. What you need to try is to uninstall and reinstall Ranorex plugin. At least it helped me when I tried your steps. Initially, Ranorex Spy was not able to track elements in Chrome (after first start from command line). I've uninstalled Ranorex plugin and installed it back. After this, Spy started to recognize DOM in Chrome.

BTW, make sure Chrome is not running in background before uninstalling/reinstalling and restarting Chrome (uncheck option "Continue running background apps when Google Chrome is closed" in Chrome Settings >> Advanced Settings)!

Re: Chrome in different Lanaguages

Posted: Thu Sep 26, 2019 1:47 pm
by cs97jjm3
thanks, I will retry this later and let you know outcome

Re: Chrome in different Lanaguages

Posted: Fri Sep 27, 2019 8:37 am
by cs97jjm3
Ok new profiles made with Ranorex extension added... thanks for help