Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Firefox Extensions #3258

Answered by mdmintz
BelugaByte asked this question in Q&A
Discussion options

Hello,
first of all thanks for creating the project.
Is it possible to install Firefox Extensions via SeleniumBase? With Chrome it was pretty easy.

You must be logged in to vote

Firefox calls them "Add-ons" (Chrome calls them "Extensions").
That's probably why you didn't find that in the docs (#803 (comment)).

See https://github.com/seleniumbase/SeleniumBase/releases/tag/v1.55.1
There's a method for loading .xpi files:

self.install_addon(xpi_file)

For some reason, it must be done at runtime after the browser has already been spun up, unlike Chrome extensions, which must be initialized before the web browser is launched. So, load your Chrome extensions on the command-line, and load your Firefox add-ons inside the tests.

Replies: 1 comment

Comment options

Firefox calls them "Add-ons" (Chrome calls them "Extensions").
That's probably why you didn't find that in the docs (#803 (comment)).

See https://github.com/seleniumbase/SeleniumBase/releases/tag/v1.55.1
There's a method for loading .xpi files:

self.install_addon(xpi_file)

For some reason, it must be done at runtime after the browser has already been spun up, unlike Chrome extensions, which must be initialized before the web browser is launched. So, load your Chrome extensions on the command-line, and load your Firefox add-ons inside the tests.

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /