momentum-js-package
v1.0.7
Published
momentum js local driver
Downloads
3
Maintainers
Readme
Installation
npm i momentum-js-package -D
Implementation WebDriver(Selenium)
const {WebDriver} = require('momentum-js-package');
var driver = WebDriver.init({
host: 'your host',
port: '4444',
browser: 'chrome',
screenshotUrl:'/your-folder-here/screenshots',
});
driver.get('https://momentumsuite.com');
driver.saveScreen();
Implementation MobileDriver(Appium)
const {MobileDriver,Capabilities} = require('momentum-js-package');
let caps = Capabilities.config({
udid: 'your device UDID',
app: 'your apk or IPA file',
platformVersion: '1.0',
deviceName: 'your device name',
platformName: 'android',
customCapabilities: {},
});
var driver = MobileDriver.init({
host: 'your host',
port: 'your post',
capabilities: caps,
screenshotUrl:
'/your-folder-here/screenshots',
});
driver.sleep(300);
driver.saveScreen();