![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
firefox-profile
Advanced tools
Firefox Profile for Selenium WebdriverJS
This class allows you to:
You can add extensions to your profile, specify proxy settings, set the user preferences... More info on user preferences here.
"real" npm support is on its way... soon... maybe... Open an issue if you need it...
npm install git@github.com:saadtazi/firefox-profile-js.git
Make sur you have selenium server running... or use 'selenium-webdriver/remote' class.
var webdriver = require('selenium-webdriver');
// create profile
var FirefoxProfile = require('firefox-profile-js');
var myProfile = new FirefoxProfile();
// add an extension by specifying the path to the xpi file or to the unzipped extension directory
myProfile.addExtension('./path/to/a/firefox/extension-file.xpi', function() {
var capabilities = webdriver.Capabilities.firefox();
// attach your newly created profile
capabilities.set('firefox_profile', myProfile.encoded());
myProfile.setPreference('browser.newtab.url', 'http://saadtazi.com');
// required to create or update user.js
myProfile.updatePreferences();
// start the browser
var wd = new webdriver.Builder().
withCapabilities(capabilities).
build();
// woot!
wd.get('http://en.wikipedia.org');
});
This class is actually a port of the python class.
I currently only use the addExtension(), I only quickly manually tested the user preference and it now seems to work.
f.setPreference('browser.newtab.url', 'http://saadtazi.com');
f.updatePreferences();
FAQs
firefox profile for selenium WebDriverJs, admc/wd or any other node selenium driver that supports capabilities
The npm package firefox-profile receives a total of 94,371 weekly downloads. As such, firefox-profile popularity was classified as popular.
We found that firefox-profile demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.