Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

python selenium - using chrome with extensions/ add ons

View previous topic View next topic Go down

python selenium - using chrome with extensions/ add ons

Post by imanoob on Tue Mar 05, 2013 6:59 pm

Hi Guys,

i'm trying to automate the chrome browser to test using an extension.

I've read this is possible by setting the option in chrome options

heres the code I have :

Code:
from selenium.webdriver.chrome.options import Options

chrome_options = Options()

chrome_options.extension=['C:\\Documents and Settings\\user\\Desktop\\chrome_extension\\AdBlock_v2.5.61.crx']

driver = webdriver.Chrome(chrome_options=chrome_options)

driver.get(anything)

I get :

AttributeError: can't set attribute

for the line:

chrome_options.extension=['C:\\Documents and Settings\\user\\Desktop\\chrome_extension\\AdBlock_v2.5.61.crx']

I've tried googling around and can't find anything No I'm really stuck, any help would be appreciated cheers

imanoob

Posts : 1
Join date : 2013-03-05

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum