Subramani21 / selenium-vba

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

Chrome extensions are turned off #124

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system :
.Net Framework version : 4.5
Office Version : 2013
SeleniumWrapper version : last

What is your issue ?

Hello, 

when running an excel selenium VBA program, all chrome extensions are turned 
off in the chrome window, is there a possibility to enable them.
Thanks

Original issue reported on code.google.com by alam...@gmail.com on 10 Dec 2014 at 1:59

GoogleCodeExporter commented 8 years ago
Every time chrome is started, a new and clean session is created.
There is two possible ways to work with extensions.
You can either install the extension before starting the browser:
 Dim wd as New SeleniumWrapper.WebDriver
 wd.addExtension "c:\...\extension.ctx"
 wd.start "chrome", "http://..."

Or you can use a customised chrome profile:
 Dim wd as New SeleniumWrapper.WebDriver
 wd.setProfile "c:\...\profile folder"
 wd.start "chrome", "http://..."

Original comment by florentbr on 10 Dec 2014 at 7:14