- imanoob
- Posts : 1
Join date : 2013-03-05
python selenium - using chrome with extensions/ add ons
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 :
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 I'm really stuck, any help would be appreciated
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 I'm really stuck, any help would be appreciated
Permissions in this forum:
You cannot reply to topics in this forum