-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Firefox Extensions #3258
-
Hello,
first of all thanks for creating the project.
Is it possible to install Firefox Extensions via SeleniumBase? With Chrome it was pretty easy.
Beta Was this translation helpful? Give feedback.
All reactions
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
-
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.
Beta Was this translation helpful? Give feedback.