Skip to content

Instantly share code, notes, and snippets.

@straris
straris / uploadLocalFile.js
Last active April 18, 2022 07:51 — forked from Bunk/uploadLocalFile.js
Nightwatch — Upload local files to remote selenium grid
const path = require('path');
const util = require('util');
const events = require('events');
const archiver = require('archiver');
function uploadLocalFile() {
events.EventEmitter.call(this);
}
util.inherits(uploadLocalFile, events.EventEmitter);
/**
16:22:38.860 INFO - Launching a Selenium Grid node
16:22:39.311 INFO - Java: Oracle Corporation 25.73-b02
16:22:39.311 INFO - OS: Mac OS X 10.11.3 x86_64
16:22:39.318 INFO - v2.53.1, with Core v2.53.1. Built from revision a36b8b1
16:22:39.379 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC
16:22:39.380 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC
16:22:39.380 INFO - Driver class not found: com.opera.core.systems.OperaDriver
16:22:39.380 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered