Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» New! Appium Desktop
Today at 3:51 pm by azharuddin

» Selenium WebDriver Integration
Tue Nov 21, 2017 1:06 pm by azharuddin

» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

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