Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions android/BrowserStackSample.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
let wd = require('wd');
let assert = require('assert');
let asserters = wd.asserters;

desiredCaps = {
// Set your BrowserStack access credentials
'browserstack.user' : 'YOUR_USERNAME',
'browserstack.key' : 'YOUR_ACCESS_KEY',

// Set URL of the application under test
'app' : 'bs://<app-id>',

'browserstack.user' : 'gopalgupta_2rzYBm',
'browserstack.key' : 'F5weLDx6NJMiHwepy2cy',
// Set app_url of the application under test
'app' : 'bs://c700ce60cf13ae8ed97705a55b8e022f13c5827c',
// Specify device and os_version for testing
'device' : 'Google Pixel 3',
'os_version' : '9.0',

// Set other BrowserStack capabilities
'project' : 'First NodeJS project',
'build' : 'Node Android',
'build' : 'browserstack-build-1',
'name': 'first_test'
};

// Initialize the remote Webdriver using BrowserStack remote URL
// and desired capabilities defined above
driver = wd.promiseRemote("http://hub-cloud.browserstack.com/wd/hub");

// Test case for the BrowserStack sample Android app.
// If you have uploaded your app, update the test case here.
driver.init(desiredCaps)
Expand Down