danwagnerco / selenium-vba

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

How to set a profile in VBA (excel) #139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I can get firefox to work perfectly with selenium vba, I am just lost on how to 
set a profile that i created just for selenium vba. It seems that 20-30 seconds 
go by before firefox even opens, and I was hoping that if it used a current 
profile that it would save some time instead of waiting for a new one to be 
created. Any help would be appreciated. Thank you.

Original issue reported on code.google.com by flirtyjo...@gmail.com on 21 Feb 2015 at 8:00

GoogleCodeExporter commented 9 years ago
That's a lot and unusual.
On my 5 years old laptop, it only takes 5 sec to launch Firefox, navigate to a 
page and close it.
You should first try to see if there is some applications slowing down the 
launching by stopping them. It could be the antivirus.
Moreover Selenium is not yet compatible with Firefox 35 and 36, so be sure that 
you are working with Firefox 34 at most.

Regarding your solution, I'm not sure that using a profile would speed up 
things as the web driver duplicates it at every launch.
But if you still want to try:

Dim driver As New WebDriver
driver.setProfil "c:\profile_directory"
driver.start "firefox", "www.domain.com"
driver.open "/"
...

Original comment by florentbr on 22 Feb 2015 at 5:51

GoogleCodeExporter commented 9 years ago
I know, its like pulling teeth waiting. Normal startup of firefox is like 3 
seconds at the most. I did not know about the version, I am running 35. I will 
try to downgrade it now. thank you so much.

Original comment by flirtyjo...@gmail.com on 22 Feb 2015 at 8:26

3Tarekmohamed commented 6 years ago

hi , how i can get the profile path ?