You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but as soon as I start the test, I get an error: Unknown browser: "iphone"
Ideas or suggestions?
best regards, micha
varcapabilities={"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 runselenium : {"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 settingsfor(variinnightwatch_config.test_settings){varconfig=nightwatch_config.test_settings[i];config['selenium_host']=nightwatch_config.selenium.host;config['selenium_port']=nightwatch_config.selenium.port;}module.exports=nightwatch_config;
I can see that you have passed the browserName capability as "iPhone" which is incorrect and hence getting the error, instead, can you put the browser name of your choice to test on eg:- Chrome, Safari, Firefox, and Edge.
Activity
harsh-browserstack commentedon Jul 19, 2021
Hey Micha,
I can see that you have passed the browserName capability as "iPhone" which is incorrect and hence getting the error, instead, can you put the browser name of your choice to test on eg:- Chrome, Safari, Firefox, and Edge.
Regards,
Harsh Pathar
Browserstack Support
webdesignberlin commentedon Jul 22, 2021
Hi Harsh, i get them via the Capabilities Generator: https://www.browserstack.com/automate/capabilities
webdesignberlin commentedon Jul 28, 2021
Some Ideas?. If i use the example of https://automate.browserstack.com/dashboard/v2/quick-start/get-started#view-test-results-on-dashboard
i became:
`./node_modules/.bin/nightwatch -c conf/parallel.conf.js -e env1
TEST FAILURE: 1 error during execution; 0 tests failed, 0 passed (17ms)
Error: Unknown browser: "ios"
`