leochabi / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 1 forks source link

Bad user account of firefox instance #55

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system and version (32/64bit) : xp pro 32 & sp3
.Net Framework version : VBA
Office name and version(32/64bit) : office 2007 32bit
Browser name and version : filrefox 27.0.1
SeleniumWrapper version : 2.5.0

What steps will reproduce the problem with a public website ?
1.
2.
3.

What is the expected output? What do you see instead?

Please provide any additional information below.
On my windows' account, when I launch firefox, it uses a proxy setting. When I 
use vba script, it launch a firefow instance not on my windows' account, so, it 
hasn't got my proxy setting.
How Can I launch a firefox instance on my user's rights ?

Original issue reported on code.google.com by epimethee78 on 25 Feb 2014 at 5:46

GoogleCodeExporter commented 8 years ago
Selenium doesn't load the Firefox user configuration, but a default and clean 
one.
To customize a configuration, you need create a profile :
Run "firefox -p" and create the profile "Selenium" for example, launch it and 
configure your proxy.

Then to use it in a script:
Dim driver As New SeleniumWrapper.WebDriver
driver.setProfile "Selenium"
driver.start "firefox", "http://www.google.com"
...

Original comment by florentbr on 25 Feb 2014 at 6:34

GoogleCodeExporter commented 8 years ago
All are fine now, I can use my own profile with firefox. Thanks

Original comment by epimethee78 on 27 Feb 2014 at 10:49

GoogleCodeExporter commented 8 years ago

Original comment by florentbr on 8 Sep 2014 at 5:40