
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.
wt-protractor-utils
Advanced tools
A simple module to help you generate your protractor and browserstack cross-browser testing configuration.
This should be combined with wt-protractor-runner.
This module is an abstraction and factoring tool for protractor configuration and browserstack capacities. It will help you replace the following configuration:
var protractorRunner = require('wt-protractor-runner');
var specPattern = __dirname + '/test/e2e/*.js';
gulp.task('test-e2e', protractorRunner({
configList: [
/* Chrome. */
{
capabilites: {
acceptSslCerts: true,
browser: 'chrome'
'browserstack.debug': true,
'browserstack.user': process.env.YOUR_BROWSERSTACK_USER_ENV_VAR,
'browserstack.key': process.env.YOUR_BROWSERSTACK_KEY_ENV_VAR,
os: 'WINDOWS',
os_version: '8.1'
},
params: {
/* Tells your tests to not use `browser.manage().logs().get('browser')` to read browser logs
* as it doesn't seem to work on Windows. */
dumpLogs: false
},
seleniumAddress: 'http://hub.browserstack.com/wd/hub',
specs: specPattern
},
/* Safari on browserstack. */
{
capabilities: {
acceptSslCerts: true,
browserName: 'safari',
'browserstack.debug': true,
'browserstack.user': process.env.YOUR_BROWSERSTACK_USER_ENV_VAR,
'browserstack.key': process.env.YOUR_BROWSERSTACK_KEY_ENV_VAR,
os: 'OS X',
os_version: 'Yosemite'
},
seleniumAddress: 'http://hub.browserstack.com/wd/hub',
specs: specPattern
}
]
}));
with something more readable and with less duplication like this.
var protractorRunner = require('wt-protractor-runner');
var protractorUtils = require('wt-protractor-utils');
var protractorBaseConfig = {
capabilities: {
'browserstack.user': process.env.YOUR_BROWSERSTACK_USER_ENV_VAR,
'browserstack.key': process.env.YOUR_BROWSERSTACK_KEY_ENV_VAR
},
specs: __dirname + '/test/e2e/*.js'
};
gulp.task('test-e2e', protractorRunner({
configList: [
/* OS X Chrome. */
{
protractorUtils.mergeConfig({
configList: [
protractorBaseConfig,
protractorUtils.platform.browserstack,
protractorUtils.os.windows,
protractorUtils.browser.chrome
]
}),
},
/* Windows Internet Explorer. */
{
protractorUtils.mergeConfig({
configList: [
protractorBaseConfig,
protractorUtils.platform.browserstack,
protractorUtils.os.osx,
protractorUtils.browser.safari
]
}),
}
]
}));
1.0.0 - 2015-05-07
ProtractorUtils.device
, moved 'android' from browser to os and iPad/iPhone from browser to device.FAQs
Protractor utils
The npm package wt-protractor-utils receives a total of 2 weekly downloads. As such, wt-protractor-utils popularity was classified as not popular.
We found that wt-protractor-utils demonstrated a not healthy version release cadence and project activity because the last version was released 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.