firefox-profile-js
Firefox Profile for Selenium WebdriverJS,
admc/wd or any other library that allows you to set capabilities.
This class allows you to:
- create a firefox profile
- use an existing profile (by specifying path)
- add extensions to your profile,
- specify proxy settings,
- set the user preferences...
More info on user preferences here.
Installation
"real" npm support is on its way... soon... maybe... Open an issue if you need it... Use npm:
npm install firefox-profile
Usage
Make sur you have selenium server running... or use 'selenium-webdriver/remote' class.
Steps
- create a profile
- modify the profile:
- setPreference(key, value)
- addExtension(path/To/Extenstion.xpi) or addExtension(path/To/Unpacked/Extension/)
- create firefox capabilities and set the 'firefox_profile' capability to profile.encoded()
- attach the capabilitites to your webdriver (using withCapabilities)
I wanna see it!
API Documentation
The API documentation can be found in doc/.
It can be regenerated using grunt docs
.
Requires apidox - listed in devDependencies.
Tests
mocha
# or
grunt mochacov:unit
Coverage
grunt mochacov:coverage
Generates doc/coverage.html
TODO
add documentation and commentswrite testsfix bugs- write more tests
- fix more bugs
clean tmp directory on process 'exit' and 'SIGINT'
Disclaimer
This class is actually a port of the python class.
Found a bug?
Open a github issue.