Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
wd-parallel-async
Advanced tools
Run your WD.js driven tests in multiple browsers, at the same time
npm install wd-parallel-async
Start by importing the required libraries.
var webdriver = require('../lib/main')
, assert = require('assert');
Then create the parallelizer.
var browsers = p_webdriver.remote();
Now add a test method to the multiple browser object. This method needs to arguments named browser and desired.
browsers.test = function(browser, desired) {
console.log("server status:", browser.status());
browser.init(desired);
browser.get("http://google.com");
console.log("title is "+browser.title());
var queryField = browser.elementByName('q');
browser.type(queryField, "Hello World");
browser.type(queryField, "\n");
browser.setWaitTimeout(3000);
browser.elementByCss('#ires'); // waiting for new page to load
console.log(browser.title());
browser.quit();
};
Load the configuration for all your browsers from your configuration file.
//Load configuration file
browsers.loadConfigFile("examples/config.json");
Now you can go ahead and run the test !
//Run test on all browsers
browsers.run();
This uses node-wd-sync written by sebv so you can check this page on supported methods.
WD is simply implementing the Selenium JsonWireProtocol, for more details see the official docs: - http://code.google.com/p/selenium/wiki/JsonWireProtocol
...
FAQs
Run your WD.js driven tests in multiple browsers, at the same time
The npm package wd-parallel-async receives a total of 1 weekly downloads. As such, wd-parallel-async popularity was classified as not popular.
We found that wd-parallel-async 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.