browserstack / nightwatch-browserstack

Selenium examples for Nightwatch and BrowserStack Automate
https://www.browserstack.com
77 stars 62 forks source link

Devices #6

Closed potapovDim closed 8 years ago

potapovDim commented 8 years ago

how to add devices ?

vedharish commented 8 years ago

Hey @potapovDim , you can add the device name in the desiredCapabilities object.

Example - add here

desiredCapabilities: {
  'build': 'nightwatch-browserstack',
  'browserstack.user': process.env.BROWSERSTACK_USERNAME || 'BROWSERSTACK_USERNAME',
  'browserstack.key': process.env.BROWSERSTACK_ACCESS_KEY || 'BROWSERSTACK_ACCESS_KEY',
  'browserstack.debug': true,
  'browserName' : 'android',
  'platform' : 'ANDROID',
  'device' : 'Samsung Galaxy Note 3'
}

You can auto-generate these capabilities from here

potapovDim commented 8 years ago

Hey @vedharish ,how can i do multi desiredCapabilities?? if i want to run my test on 10 devices ??

vedharish commented 8 years ago

@potapovDim you will need to add the capabilities in conf/parallel.conf.js and then run npm run parallel. Please have a look at README.md

ganlanyuan commented 5 years ago

How should I add the desiredCapabilities or where can I find it on the website? For example:

ie: {
  desiredCapabilities: {
    browser: "internet explorer",
    version: "8",
    platform: "Windows 7 (64-bit)",
  }
}

Is this correct? Thanks

ganlanyuan commented 5 years ago

Just found out. thanks