Skip to content

capabilities config mobile #41

@webdesignberlin

Description

@webdesignberlin

hello, i'm trying to get the mobile project up and running. I looked for the capabilities out of here https://www.browserstack.com/automate/capabilities.

but as soon as I start the test, I get an error: Unknown browser: "iphone"

Ideas or suggestions?
best regards, micha

var capabilities = {
    "os_version" : "14",
    "device" : "iPhone 12",
    "real_mobile" : "false",
    "build" : "nightwatch-browserstack",
    "browserstack.local" : "false",
    "deviceOrientation" : "landscape",
    "browserstack.user" : "xxx",
    "browserstack.key" : "xxx",
    "browserName" : "iPhone"
    };

nightwatch_config = {
    src_folders : [ "tests/single" ],  // Specifies which tests would run
  
    selenium : {
      "start_process" : false,
      "host" : "hub-cloud.browserstack.com",  // Specifies the BrowserStack Hub URL
      "port" : 443
    },
  
    test_settings: {
      default: {
        // The following are the BrowserStack specific capabilities for all your tests that will run using this conf file.
        desiredCapabilities: capabilities,
      }
    }
  };
  
  // Code to copy seleniumhost/port into test settings
  for(var i in nightwatch_config.test_settings){
    var config = nightwatch_config.test_settings[i];
    config['selenium_host'] = nightwatch_config.selenium.host;
    config['selenium_port'] = nightwatch_config.selenium.port;
  }
  
  module.exports = nightwatch_config;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions