在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:webdriverio-boneyard/wdio-firefox-profile-service开源软件地址:https://github.com/webdriverio-boneyard/wdio-firefox-profile-service开源编程语言:JavaScript 100.0%开源软件介绍:WDIO Firefox Profile ServiceYou want to run your Firefox browser with a specific extension or need to set couple preferences? Selenium allows you to use a profile for the Firefox browser by passing this profile as To find all possible options just open about:config in your Firefox browser or go to mozillaZine website to find the whole documentation about each setting. In Addition to that you can define compiled (as InstallationThe easiest way is to keep {
"devDependencies": {
"wdio-firefox-profile-service": "~0.0.2"
}
} You can simple do it by: npm install wdio-firefox-profile-service --save-dev Instructions on how to install ConfigurationSetup your profile by adding the // wdio.conf.js
export.config = {
// ...
services: ['firefox-profile'],
firefoxProfile: {
extensions: [
'/path/to/extensionA.xpi', // path to .xpi file
'/path/to/extensionB' // or path to unpacked Firefox extension
],
'browser.startup.homepage': 'http://webdriver.io'
},
// ...
}; OptionsfirefoxProfileContains all settings as key value pair. If you want to add an extension, use the Type: DevelopmentAll commands can be found in the package.json. The most important are: Watch changes: $ npm run watch Run tests: $ npm test
# run test with coverage report:
$ npm run test:cover Build package: $ npm build For more information on WebdriverIO see the homepage. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论