How to User Firefox Profile with the Extensions Enabled on Robotframework Selenium2LIibrary

48 views
Skip to first unread message

Prince Deepak

unread,
Feb 6, 2020, 1:59:54 PM2/6/20
to robotframe...@googlegroups.com
Hi People,

I have installed mod headers extension in firefox and found the profile address for it.
Then passed the profile address in the code as

*** Variables ***
${BROWSER}        firefox

${profileAddress}    C:\\Users\\hez232\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\mkjto6rn.default-release

*** Keywords ***
Open browser and go to URL
    log to console    Going to open browser with custome firefox profile!
    Open Browser    ${URL}    ${BROWSER}    ff_profile_dir=${profileAddress}

But still it opens empty firefox with no extensions.


Firefox Version 71.

Can anyone help me to resolve this issue

Tatu Aalto

unread,
Feb 7, 2020, 1:48:37 PM2/7/20
to deepak...@gmail.com, robotframework-users
Hi

It could work better if you remove the comment character from the front of ff_profile_dir  argument. You have:
#ff_profile_dir=${profileAddress} 
But it should be:
ff_profile_dir=${profileAddress}

-Tatu

On Thu, 6 Feb 2020 at 20:59, Prince Deepak <deepak...@gmail.com> wrote:
Hi People,

I have installed mod headers extension in firefox and found the profile address for it.
Then passed the profile address in the code as

*** Variables ***
${BROWSER}        firefox

${profileAddress}    C:\\Users\\hez232\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\mkjto6rn.default-release

*** Keywords ***
Open browser and go to URL
    log to console    Going to open browser with custome firefox profile!
    Open Browser    ${URL}    ${BROWSER}    #ff_profile_dir=${profileAddress}

But still it opens empty firefox with no extensions.


Firefox Version 71.

Can anyone help me to resolve this issue

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/76a484ad-b4c0-44ba-a656-f6fa0b4ea487%40googlegroups.com.

Deepak S

unread,
Feb 8, 2020, 1:37:31 AM2/8/20
to Tatu Aalto, robotframework-users
Hi Tatu,

Even after changing the ff_profile_dir=${profileAddress}

It just Opens  Firefox with All Extension for a Second then Switches to a fresh copy of Firefox with No Extensions, AND from my Analysis it is failing to copy extension while creating a temporary profile, Can any one Suggest what I need to do?
--
Regards,
Deepak

Tatu Aalto

unread,
Feb 8, 2020, 1:57:02 AM2/8/20
to Deepak S, robotframework-users
Hi

Well, hard to say anything for sure because I don't work with browser extension. But because you said that you briefly see the extension in the browser, I would assume that problem is in the Firefox side.

Now, what version of Selenium2Library you are using? Version 3.0 or something else? Because there are ways debug the problem, but if you are using too old version, the options are not inbuilt in the library.

To continue with the same theme, Selenium2Library is deprecated[1] (more than two years ago) and all new development will happen in SeleniumLibrary. Users are encouraged. Users are encouraged to migrate to the SeleniumLibrary.
Reply all
Reply to author
Forward
0 new messages