How to start firefox with extensions e.g. Adblock?

633 views
Skip to first unread message

Hubert Trela

unread,
Jun 16, 2014, 3:50:58 AM6/16/14
to seleniu...@googlegroups.com
Hi all.
I've created a test that opens firefox with system proxy from RF, but I am stuck with importing extensions e.g. Adblock. Can I ask for example, how to do it? I guess that selenium.webdriver.firefox.extension_connection can be used for that, but i am lack of knowledge, how to use it.
My test so far:
*** Settings ***
Library    Selenium2Library

*** Variables ***
${proxy.proxy_type}=    {'ff_value': 5, 'string': 'SYSTEM'}

*** Test Cases ***

Open Firefox
    Open Firefox

*** Keywords ***
Open Firefox
    ${proxy}=    Evaluate    sys.modules['selenium.
webdriver'].Proxy()    sys, selenium.webdriver
    Create Webdriver     Firefox     proxy=${proxy}
    Go to    http://www.google.com
    Maximize Browser Window

Connor Gilbert

unread,
Jun 16, 2014, 10:32:01 AM6/16/14
to seleniu...@googlegroups.com
Did you try opening firefox using a specific firefox profile? There are arguments you can pass to specify this.

Vinothkumar Velusamy

unread,
Jun 18, 2014, 3:07:23 AM6/18/14
to seleniu...@googlegroups.com
Load the FF profile where you have all the settings related to extensions.Like Connor said, it will work based on the extension.


On Mon, Jun 16, 2014 at 7:32 AM, Connor Gilbert <conno...@gmail.com> wrote:
Did you try opening firefox using a specific firefox profile? There are arguments you can pass to specify this.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c5b50321-2a2e-4320-84ca-d04c5cc1732c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Thank you,
Vinothkumar Velusamy
1-408-685-1265

THRINATH

unread,
Jun 18, 2014, 8:22:16 AM6/18/14
to seleniu...@googlegroups.com
Create Custom Profile..mean Add adblock to your firefox. Use that firefox profile for you application.

Thrinath



For more options, visit https://groups.google.com/d/optout.



--
Regards,
Thirnath
Reply all
Reply to author
Forward
0 new messages