macaca icon indicating copy to clipboard operation
macaca copied to clipboard

Config for executing tests in saucelabs for mobile does not work with desktop test

Open mpreethi90 opened this issue 9 years ago • 2 comments

I use below driver definition and desired capabilities to execute test in saucelabs for mobile. But that does not work with desktop. Kindly assist-

const driver = wd.promiseChainRemote("ondemand.saucelabs.com", 80, 'username','accesskey')

var wd = require('webdriver-client')({ platform: 'OS X 10.11', platformName:'desktop', version:'latest', browserName:'firefox' }); throws below error-

 Error: [init({"autoAcceptAlerts":true,"browserName":"firefox","platform":"OS X 10.11","platformName":"desktop","version":"latest"})] The environment you requested was unavailable.

mpreethi90 avatar Mar 05 '17 05:03 mpreethi90

@zenzhu @xudafeng can you kindly help to fix this issue?

mpreethi90 avatar Mar 06 '17 07:03 mpreethi90

@mpreethi90 this will help you to run with saucelab

const wd = require('macaca-wd');

const driver = wd.promiseChainRemote("ondemand.saucelabs.com", 80, 'username', 'accessKey')

return driver
  .init({
    platform: 'Windows 7',
    browserName: 'chrome',
    version: 'latest',
    idleTimeout: 180
  })

dharmakrish6 avatar Mar 29 '17 07:03 dharmakrish6