Open browser in new profile or without extension

Class library usage, coding and language questions.
benson
Posts: 2
Joined: Thu Nov 20, 2014 11:18 am

Open browser in new profile or without extension

Post by benson » Thu Nov 20, 2014 11:23 am

Hi, not sure if this is a right section or if anyone has posted this before, but i wasn't able to find "browser profile" related topic.

In selenium, a new browser instant is created everytime whenever open browser command is issued. The new instant will always be clean (new profile, without remember password, without plugin), and with pre-configured settings (do not ask for password, allow java, etc).

All these are actually possible through sending flags to browser when opening it. Is this feature available in Ranorex, or is there a way of achieving it easier rather than using usercode?

Thanks in advance,
benson

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Open browser in new profile or without extension

Post by krstcs » Thu Nov 20, 2014 6:16 pm

If the browser has command-line switches that enable that type of functionality (I know FF does, not sure about the others) then you can use those when you start the browser instance.

However, Ranorex does not include anything like it because not all browsers are the same in this regard and they try to keep it simple.
Shortcuts usually aren't...

benson
Posts: 2
Joined: Thu Nov 20, 2014 11:18 am

Re: Open browser in new profile or without extension

Post by benson » Fri Nov 21, 2014 4:40 am

chrome does too. unfortunately the command line is to disable all plugins, which make ranorex unable to interact with browser after opening the page. so far i have yet find any workaround for this.

anyone has any idea?

i am doing this to avoid the prompt like "remember password" and autofill problem. my last resolution is to create a nicely customized user profile in chrome and start with the specific profile everytime.

anyone has a better solution to problem like such?

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Open browser in new profile or without extension

Post by krstcs » Fri Nov 21, 2014 2:23 pm

You can turn off auto-fill and remember passwords in the options of each browser.
Shortcuts usually aren't...