nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.79k stars 1.31k forks source link

The browser.uploadFile() method is not uploading the required attachment to the website under test on Android (Chrome) browser #3720

Open abhimanyukoul opened 1 year ago

abhimanyukoul commented 1 year ago

Description of the bug/issue

When I used the browser.uploadFile(locator, filepath) method, I expected the required attachment (in my case, a '.png' file) to get uploaded on the website, but instead, I received the following error message in the terminal of the IDE (Visual Code):

[07/05/2023, 11:08:13.588 PM] Error trying parse string as a file with file detector; sending keys insteadUnsupportedOperationError [07/05/2023, 11:08:13.598 PM] TimeoutError [07/05/2023, 11:08:13.598 PM] An error occurred while running .uploadFile() command on <#file-upload>: keys.split is not a function [07/05/2023, 11:08:13.598 PM] {"error":{},"status":-1,"value":null}

Steps to reproduce

  1. Go to 'https://the-internet.herokuapp.com/upload' website
  2. Run the browser.uploadFile(locator, filepath) method as part of your NightwatchJs script
  3. Click on the 'Upload' button
  4. See the error - [07/05/2023, 11:08:13.588 PM] Error trying parse string as a file with file detector; sending keys insteadUnsupportedOperationError [07/05/2023, 11:08:13.598 PM] TimeoutError [07/05/2023, 11:08:13.598 PM] An error occurred while running .uploadFile() command on <#file-upload>: keys.split is not a function [07/05/2023, 11:08:13.598 PM] {"error":{},"status":-1,"value":null}

Sample test

module.exports = {
  "Bstack Demo": async function (browser) {

    browser.url('https://the-internet.herokuapp.com/upload');
    browser.pause(5000);
    browser.uploadFile('#file-upload', '<absolute_path_of_the_file_to_be_attached>');
    browser.pause(5000);
    browser.useXpath().click('//input[@id="file-submit"]');
    browser.pause(5000);

  }
};

Command to run

Command executed on the IDE Terminal:

npm run single_herokuapp

A section in the package.json file:

"scripts": {
    "single_herokuapp": "nightwatch --verbose --test ./tests/single/<script_name>.js --env browserstack.android"
}

Verbose Output

[07/05/2023, 11:07:33.493 PM] > nightwatch-browserstack@1.0.0 single_herokuapp /Users/<username>/Desktop/BrowserStack Tickets Resolution/Nightwatch/nightwatch-browserstack
[07/05/2023, 11:07:33.493 PM] > nightwatch --verbose --test ./tests/single/ticket_898335_upload_image_herokuapp_sample_website.js --env browserstack.android

[07/05/2023, 11:07:34.349 PM] [Ticket 898335 Upload Image Herokuapp Sample Website] Test Suite
[07/05/2023, 11:07:34.351 PM] ───────────────────────────────────────────────────────────────────────────────
[07/05/2023, 11:07:34.354 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:34.382 PM]    Request POST https://hub-cloud.browserstack.com/wd/hub/session  
[07/05/2023, 11:07:34.382 PM]    {
[07/05/2023, 11:07:34.382 PM]      capabilities: {
[07/05/2023, 11:07:34.382 PM]        firstMatch: [ {} ],
[07/05/2023, 11:07:34.382 PM]        alwaysMatch: {
[07/05/2023, 11:07:34.382 PM]          browserName: 'chrome',
[07/05/2023, 11:07:34.382 PM]          'bstack:options': {
[07/05/2023, 11:07:34.382 PM]            deviceName: 'Google Pixel 6 Pro',
[07/05/2023, 11:07:34.382 PM]            osVersion: '12.0',
[07/05/2023, 11:07:34.382 PM]            buildName: 'ticket_898335_upload_image',
[07/05/2023, 11:07:34.382 PM]            sessionName: 'ticket_898335_upload_image_herokuapp_sample_website',
[07/05/2023, 11:07:34.382 PM]            local: 'false',
[07/05/2023, 11:07:34.382 PM]            appiumVersion: '2.0.0',
[07/05/2023, 11:07:34.382 PM]            interactiveDebugging: 'true',
[07/05/2023, 11:07:34.382 PM]            debug: 'true',
[07/05/2023, 11:07:34.382 PM]            networkLogs: 'true',
[07/05/2023, 11:07:34.382 PM]            userName: '<BROWSERSTACK_USERNAME>',
[07/05/2023, 11:07:34.382 PM]            accessKey: '<BROWSERSTACK_ACCESS_KEY>'
[07/05/2023, 11:07:34.382 PM]          },
[07/05/2023, 11:07:34.382 PM]          'goog:chromeOptions': {}
[07/05/2023, 11:07:34.383 PM]        }
[07/05/2023, 11:07:34.383 PM]      }
[07/05/2023, 11:07:34.383 PM]   }
[07/05/2023, 11:07:34.436 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:34.518 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:34.601 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:34.681 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:34.762 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:34.843 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:34.924 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.005 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.086 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.167 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.249 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.331 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.413 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.495 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.576 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.658 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.738 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.820 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.900 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:35.981 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.062 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.144 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.224 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.306 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.387 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.467 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.548 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.629 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.709 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.790 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.871 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:36.952 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.033 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.114 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.195 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.276 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.357 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.439 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.520 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.601 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.683 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.766 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.846 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:37.927 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.008 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.088 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.168 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.250 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.331 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.412 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.494 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.575 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.656 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.737 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.818 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.899 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:38.981 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.062 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.143 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.225 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.306 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.386 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.466 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.547 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.629 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.710 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.791 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.872 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:39.953 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.035 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.115 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.196 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.277 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.358 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.439 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.519 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.600 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.680 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.761 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.842 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:40.923 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.004 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.086 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.167 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.248 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.329 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.409 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.490 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.581 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.652 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.733 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.814 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.896 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:41.977 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.057 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.139 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.220 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.301 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.382 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.462 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.543 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.624 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.705 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.786 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.868 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:42.949 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.030 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.110 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.191 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.272 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.353 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.435 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.516 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.597 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.678 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.759 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.840 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:43.921 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.002 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.083 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.165 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.247 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.327 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.409 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.491 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.572 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.653 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.734 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.815 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.896 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:44.977 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.058 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.139 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.220 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.302 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.383 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.464 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.545 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.627 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.709 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.790 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.871 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:45.952 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.033 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.114 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.194 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.275 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.356 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.437 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.519 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.600 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.680 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.761 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.843 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:46.924 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.005 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.086 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.167 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.248 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.329 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.410 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.492 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.573 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.655 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.735 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.816 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.897 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:47.978 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.058 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.139 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.220 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.301 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.382 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.464 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.545 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.626 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.707 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.788 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.870 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:48.951 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.034 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.114 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.194 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.274 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.355 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.436 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.517 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.598 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.684 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.761 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.843 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:49.924 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.004 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.086 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.167 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.247 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.327 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.409 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.490 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.574 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.654 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.736 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.816 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.898 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:50.980 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.061 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.141 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.221 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.302 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.383 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.464 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.545 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.625 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.706 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.787 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.868 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:51.950 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.031 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.111 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.192 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.274 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.354 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.436 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.517 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.598 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.679 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.759 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.840 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:52.921 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.002 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.084 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.165 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.246 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.327 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.408 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.488 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.568 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.649 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.730 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.811 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.892 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:53.973 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.053 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.135 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.216 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.297 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.377 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.458 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.540 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.621 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.702 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.783 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.864 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:54.946 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.027 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.108 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.188 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.269 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.350 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.432 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.513 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.594 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.675 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.756 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.838 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:55.919 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.000 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.081 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.162 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.243 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.324 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.405 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.487 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.567 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.649 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.730 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.811 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.892 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:56.973 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.063 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.135 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.216 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.297 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.378 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.459 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.540 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.621 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.702 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.782 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.863 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:57.943 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.025 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.106 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.187 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.268 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.350 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.431 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.512 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.594 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.675 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.757 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.838 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:58.919 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.000 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.082 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.163 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.244 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.325 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.405 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.487 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.567 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.649 PM] ⠹ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.730 PM] ⠸ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.811 PM] ⠼ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.891 PM] ⠴ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:07:59.973 PM] ⠦ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:08:00.053 PM] ⠧ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:08:00.133 PM] ⠇ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:08:00.215 PM] ⠏ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:08:00.295 PM] ⠋ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:08:00.375 PM] ⠙ Connecting to hub-cloud.browserstack.com on port 443...
[07/05/2023, 11:08:00.434 PM]    Response 200 POST https://hub-cloud.browserstack.com/wd/hub/session (26070ms)
[07/05/2023, 11:08:00.437 PM]    {
[07/05/2023, 11:08:00.437 PM]      value: {
[07/05/2023, 11:08:00.437 PM]        capabilities: {
[07/05/2023, 11:08:00.437 PM]          platform: 'LINUX',
[07/05/2023, 11:08:00.437 PM]          webStorageEnabled: false,
[07/05/2023, 11:08:00.437 PM]          takesScreenshot: true,
[07/05/2023, 11:08:00.437 PM]          javascriptEnabled: true,
[07/05/2023, 11:08:00.437 PM]          databaseEnabled: false,
[07/05/2023, 11:08:00.437 PM]          networkConnectionEnabled: true,
[07/05/2023, 11:08:00.437 PM]          locationContextEnabled: false,
[07/05/2023, 11:08:00.437 PM]          warnings: {},
[07/05/2023, 11:08:00.437 PM]          desired: {
[07/05/2023, 11:08:00.437 PM]            platformName: 'Android',
[07/05/2023, 11:08:00.437 PM]            browserName: 'chrome',
[07/05/2023, 11:08:00.437 PM]            'goog:chromeOptions': { args: [Array] },
[07/05/2023, 11:08:00.437 PM]            newCommandTimeout: 0,
[07/05/2023, 11:08:00.437 PM]            deviceName: 'android',
[07/05/2023, 11:08:00.437 PM]            automationName: 'uiautomator2',
[07/05/2023, 11:08:00.437 PM]            skipServerInstallation: true,
[07/05/2023, 11:08:00.437 PM]            systemPort: 8203,
[07/05/2023, 11:08:00.437 PM]            chromedriverPort: 18083,
[07/05/2023, 11:08:00.437 PM]            chromedriverExecutable: '/usr/local/.browserstack/deps/chromedriver/v108.0.5359.71/chromedriver',
[07/05/2023, 11:08:00.438 PM]            udid: '24011FDEE005P2',
[07/05/2023, 11:08:00.438 PM]            suppressKillServer: true
[07/05/2023, 11:08:00.438 PM]          },
[07/05/2023, 11:08:00.438 PM]          platformName: 'Android',
[07/05/2023, 11:08:00.438 PM]          browserName: 'chrome',
[07/05/2023, 11:08:00.438 PM]          'goog:chromeOptions': {
[07/05/2023, 11:08:00.438 PM]            args: [
[07/05/2023, 11:08:00.438 PM]              '--proxy-bypass-list=<-loopback>',
[07/05/2023, 11:08:00.438 PM]              'test-type',
[07/05/2023, 11:08:00.438 PM]              '--proxy-server=http://185.255.127.148:26083',
[07/05/2023, 11:08:00.438 PM]              '--disable-features=Translate'
[07/05/2023, 11:08:00.438 PM]            ]
[07/05/2023, 11:08:00.438 PM]          },
[07/05/2023, 11:08:00.438 PM]          newCommandTimeout: 0,
[07/05/2023, 11:08:00.438 PM]          deviceName: '24011FDEE005P2',
[07/05/2023, 11:08:00.438 PM]          automationName: 'uiautomator2',
[07/05/2023, 11:08:00.438 PM]          skipServerInstallation: true,
[07/05/2023, 11:08:00.438 PM]          systemPort: 8203,
[07/05/2023, 11:08:00.438 PM]          chromedriverPort: 18083,
[07/05/2023, 11:08:00.438 PM]          chromedriverExecutable: '/usr/local/.browserstack/deps/chromedriver/v108.0.5359.71/chromedriver',
[07/05/2023, 11:08:00.438 PM]          udid: '24011FDEE005P2',
[07/05/2023, 11:08:00.438 PM]          suppressKillServer: true,
[07/05/2023, 11:08:00.438 PM]          appPackage: 'com.android.chrome',
[07/05/2023, 11:08:00.438 PM]          appActivity: 'com.google.android.apps.chrome.Main',
[07/05/2023, 11:08:00.438 PM]          deviceUDID: '24011FDEE005P2',
[07/05/2023, 11:08:00.438 PM]          deviceApiLevel: 31,
[07/05/2023, 11:08:00.438 PM]          platformVersion: '12',
[07/05/2023, 11:08:00.438 PM]          deviceScreenSize: '1440x3120',
[07/05/2023, 11:08:00.438 PM]          deviceScreenDensity: 560,
[07/05/2023, 11:08:00.438 PM]          deviceModel: 'Pixel 6 Pro',
[07/05/2023, 11:08:00.438 PM]          deviceManufacturer: 'Google',
[07/05/2023, 11:08:00.438 PM]          pixelRatio: 3.5,
[07/05/2023, 11:08:00.438 PM]          statBarHeight: 145,
[07/05/2023, 11:08:00.439 PM]          viewportRect: { left: 0, top: 145, width: 1440, height: 2789 }
[07/05/2023, 11:08:00.439 PM]        },
[07/05/2023, 11:08:00.439 PM]        sessionId: '1f95a1c99c73571b766eb6247f7c2c3f5b328243'
[07/05/2023, 11:08:00.439 PM]      }
[07/05/2023, 11:08:00.439 PM]   }
[07/05/2023, 11:08:00.447 PM] ℹ Connected to hub-cloud.browserstack.com on port 443 (26089ms).
[07/05/2023, 11:08:00.447 PM]   Using: chrome on ANDROID (12).

[07/05/2023, 11:08:00.447 PM]  Received session with ID: 1f95a1c99c73571b766eb6247f7c2c3f5b328243

[07/05/2023, 11:08:00.453 PM]    Request GET https://api.browserstack.com/automate/builds.json  
[07/05/2023, 11:08:00.455 PM]  → Running [before]:
[07/05/2023, 11:08:00.456 PM]  → Completed [before].

[07/05/2023, 11:08:00.456 PM]   Running Bstack Demo:
[07/05/2023, 11:08:00.457 PM] ───────────────────────────────────────────────────────────────────────────────────────────────────
[07/05/2023, 11:08:00.457 PM]  → Running [beforeEach]:
[07/05/2023, 11:08:00.457 PM]  → Completed [beforeEach].
[07/05/2023, 11:08:00.463 PM]  → Running [afterEach]:
[07/05/2023, 11:08:00.467 PM]  
[07/05/2023, 11:08:00.467 PM]  → Running command: url ('https://the-internet.herokuapp.com/upload')
[07/05/2023, 11:08:00.468 PM]   ⠋ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:00.474 PM]    Request POST https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243/url  
[07/05/2023, 11:08:00.474 PM]    { url: 'https://the-internet.herokuapp.com/upload' }
[07/05/2023, 11:08:00.549 PM]   ⠙ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:00.631 PM]   ⠹ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:00.711 PM]   ⠸ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:00.793 PM]   ⠼ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:00.874 PM]   ⠴ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:00.955 PM]   ⠦ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.035 PM]   ⠧ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.118 PM]   ⠇ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.200 PM]   ⠏ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.281 PM]   ⠋ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.363 PM]   ⠙ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.444 PM]   ⠹ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.525 PM]   ⠸ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.606 PM]   ⠼ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.687 PM]   ⠴ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.768 PM]   ⠦ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.849 PM]   ⠧ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:01.931 PM]   ⠇ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.012 PM]   ⠏ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.093 PM]   ⠋ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.174 PM]   ⠙ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.255 PM]   ⠹ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.336 PM]   ⠸ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.418 PM]   ⠼ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.499 PM]   ⠴ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.580 PM]   ⠦ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.661 PM]   ⠧ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.742 PM]   ⠇ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.823 PM]   ⠏ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.904 PM]   ⠋ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:02.985 PM]   ⠙ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:03.067 PM]   ⠹ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:03.149 PM]   ⠸ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:03.230 PM]   ⠼ Loading url: https://the-internet.herokuapp.com/upload
[07/05/2023, 11:08:03.268 PM]    Response 200 POST https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243/url (2795ms)
[07/05/2023, 11:08:03.268 PM]    { value: null }
[07/05/2023, 11:08:03.271 PM]   ℹ Loaded url https://the-internet.herokuapp.com/upload in 2803ms
[07/05/2023, 11:08:03.272 PM]   → Completed command: url ('https://the-internet.herokuapp.com/upload') (2805ms)
[07/05/2023, 11:08:03.273 PM]  
[07/05/2023, 11:08:03.273 PM]  → Running command: pause (5000)
[07/05/2023, 11:08:08.277 PM]   → Completed command: pause (5000) (5003ms)
[07/05/2023, 11:08:08.278 PM]  
[07/05/2023, 11:08:08.278 PM]  → Running command: uploadFile ('#file-upload', '<absolute_path_of_the_file_to_be_attached>')
[07/05/2023, 11:08:08.306 PM]    Request POST https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243/elements  
[07/05/2023, 11:08:08.307 PM]    { using: 'css selector', value: '#file-upload' }
[07/05/2023, 11:08:08.437 PM]    Response 200 POST https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243/elements (145ms)
[07/05/2023, 11:08:08.437 PM]    {
[07/05/2023, 11:08:08.437 PM]      value: [
[07/05/2023, 11:08:08.438 PM]        {
[07/05/2023, 11:08:08.438 PM]          ELEMENT: '439d7b1a-f208-4432-91d8-4354ce2128b7',
[07/05/2023, 11:08:08.438 PM]          'element-6066-11e4-a52e-4f735466cecf': '439d7b1a-f208-4432-91d8-4354ce2128b7'
[07/05/2023, 11:08:08.438 PM]        }
[07/05/2023, 11:08:08.438 PM]      ]
[07/05/2023, 11:08:08.438 PM]   }
[07/05/2023, 11:08:08.518 PM]    Request POST https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243/se/file  
[07/05/2023, 11:08:08.531 PM]    {
[07/05/2023, 11:08:08.531 PM]      file: 'base64 string'
[07/05/2023, 11:08:13.041 PM]   }
[07/05/2023, 11:08:13.587 PM]    Response 404 POST https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243/se/file (632ms)
[07/05/2023, 11:08:13.587 PM]    {
[07/05/2023, 11:08:13.587 PM]      status: 9,
[07/05/2023, 11:08:13.587 PM]      value: '',
[07/05/2023, 11:08:13.587 PM]      sessionId: '1f95a1c99c73571b766eb6247f7c2c3f5b328243'
[07/05/2023, 11:08:13.587 PM]   }
[07/05/2023, 11:08:13.588 PM] Error trying parse string as a file with file detector; sending keys insteadUnsupportedOperationError
[07/05/2023, 11:08:13.598 PM]   TimeoutError
[07/05/2023, 11:08:13.598 PM]    An error occurred while running .uploadFile() command on <#file-upload>: keys.split is not a function
[07/05/2023, 11:08:13.598 PM]     {"error":{},"status":-1,"value":null}

[07/05/2023, 11:08:13.598 PM]     Error location:
[07/05/2023, 11:08:13.598 PM]     <error_location_path>:
[07/05/2023, 11:08:13.598 PM]     –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
[07/05/2023, 11:08:13.598 PM]      7 |     browser.pause(5000);
[07/05/2023, 11:08:13.598 PM]      8 | 
[07/05/2023, 11:08:13.598 PM]      9 |     browser.uploadFile('#file-upload', '<absolute_path_of_the_file_to_be_attached>'); 
[07/05/2023, 11:08:13.598 PM]      10 |     
[07/05/2023, 11:08:13.598 PM]      11 |     browser.pause(5000);
[07/05/2023, 11:08:13.598 PM]     –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––

[07/05/2023, 11:08:13.603 PM]   → Completed command: uploadFile ('#file-upload', '<absolute_path_of_the_file_to_be_attached>') (5325ms)
[07/05/2023, 11:08:13.604 PM]  
[07/05/2023, 11:08:13.604 PM]  → Running command: pause (5000)
[07/05/2023, 11:08:18.610 PM]   → Completed command: pause (5000) (5004ms)
[07/05/2023, 11:08:18.614 PM]  
[07/05/2023, 11:08:18.614 PM]  → Running command: useXpath ()
[07/05/2023, 11:08:18.618 PM]   → Completed command: useXpath () (5ms)
[07/05/2023, 11:08:18.618 PM]  
[07/05/2023, 11:08:18.618 PM]  → Running command: click ('//input[@id="file-submit"]')
[07/05/2023, 11:08:18.647 PM]    Request POST https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243/elements  
[07/05/2023, 11:08:18.647 PM]    { using: 'xpath', value: '//input[@id="file-submit"]' }
[07/05/2023, 11:08:18.751 PM]    Response 200 POST https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243/elements (124ms)
[07/05/2023, 11:08:18.751 PM]    {
[07/05/2023, 11:08:18.751 PM]      value: [
[07/05/2023, 11:08:18.751 PM]        {
[07/05/2023, 11:08:18.751 PM]          ELEMENT: 'c46da978-a574-456f-acba-48c96d3f2d2c',
[07/05/2023, 11:08:18.751 PM]          'element-6066-11e4-a52e-4f735466cecf': 'c46da978-a574-456f-acba-48c96d3f2d2c'
[07/05/2023, 11:08:18.751 PM]        }
[07/05/2023, 11:08:18.751 PM]      ]
[07/05/2023, 11:08:18.751 PM]   }
[07/05/2023, 11:08:18.753 PM]    Request POST https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243/element/c46da978-a574-456f-acba-48c96d3f2d2c/click  
[07/05/2023, 11:08:18.753 PM] {}
[07/05/2023, 11:08:19.362 PM]    Response 200 POST https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243/element/c46da978-a574-456f-acba-48c96d3f2d2c/click (609ms)
[07/05/2023, 11:08:19.362 PM]    { value: null }
[07/05/2023, 11:08:19.363 PM]   → Completed command: click ('//input[@id="file-submit"]') (744ms)
[07/05/2023, 11:08:19.364 PM]  
[07/05/2023, 11:08:19.364 PM]  → Running command: pause (5000)
[07/05/2023, 11:08:24.367 PM]   → Completed command: pause (5000) (5002ms)
[07/05/2023, 11:08:24.368 PM]  → Completed [afterEach].

[07/05/2023, 11:08:24.374 PM]   FAILED: 1 errors (23.912s)
[07/05/2023, 11:08:24.375 PM]  → Running [after]:
[07/05/2023, 11:08:24.378 PM]  → Completed [after].
[07/05/2023, 11:08:24.384 PM]  
[07/05/2023, 11:08:24.384 PM]  → Running command: end (true)
[07/05/2023, 11:08:24.412 PM]  
[07/05/2023, 11:08:24.413 PM]  → Running command: session ('delete', [Function])
[07/05/2023, 11:08:24.413 PM]    Request DELETE https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243  

[07/05/2023, 11:08:25.698 PM]    Response 200 DELETE https://hub-cloud.browserstack.com/wd/hub/session/1f95a1c99c73571b766eb6247f7c2c3f5b328243 (1307ms)
[07/05/2023, 11:08:25.698 PM]    { state: 'success', status: 0, value: '' }
[07/05/2023, 11:08:25.703 PM]   → Completed command: end (true) (1318ms)
[07/05/2023, 11:08:25.703 PM]   → Completed command: session ('delete', [Function]) (1316ms)
[07/05/2023, 11:08:25.709 PM]    Request PUT https://api.browserstack.com/automate/sessions/1f95a1c99c73571b766eb6247f7c2c3f5b328243.json  
[07/05/2023, 11:08:25.709 PM]    {
[07/05/2023, 11:08:25.709 PM]      status: 'failed',
[07/05/2023, 11:08:25.710 PM]      reason: 'TimeoutError: An error occurred while running .uploadFile() command on <#file-upload>: keys.split is not a function'
[07/05/2023, 11:08:25.710 PM]   }
[07/05/2023, 11:08:25.746 PM]    Response 200 GET https://api.browserstack.com/automate/builds.json (25297ms)
[07/05/2023, 11:08:25.748 PM] [
[07/05/2023, 11:08:25.748 PM]   {
[07/05/2023, 11:08:25.748 PM]     automation_build: {
[07/05/2023, 11:08:25.748 PM]       name: 'ticket_898335_upload_image',
[07/05/2023, 11:08:25.748 PM]       hashed_id: '52f56747d5590cfa45d017a1a9aafb62baadd430',
[07/05/2023, 11:08:25.748 PM]       duration: 262078,
[07/05/2023, 11:08:25.748 PM]       status: 'running',
[07/05/2023, 11:08:25.748 PM]       build_tag: null,
[07/05/2023, 11:08:25.748 PM]       public_url: 'https://automate.browserstack.com/dashboard/v2/public-build/U2RyU01vUmRoanVoRkpBSUZ1SE1Ic09aL0FKRFVCK3psZTNueG9UQVFqdE94c2ZWd2hNSGRraVFUbkc3LzlQSVoxcjJhZW1IZTRRck44ZjYwb1VveVE9PS0tL3N5ZGthR0VheStFY2RRSURzVjZJZz09--edb353d857c87d39c0f1e1c417ee1e99282e2f30'
[07/05/2023, 11:08:25.748 PM]     }
[07/05/2023, 11:08:25.748 PM]   },
[07/05/2023, 11:08:25.748 PM]   {
[07/05/2023, 11:08:25.748 PM]     automation_build: {
[07/05/2023, 11:08:25.748 PM]       name: 'AUTOMATE_Performance_BS_WIN_aps_ap-south-1a_2023-05-07-17-37-32-UTC',
[07/05/2023, 11:08:25.748 PM]       hashed_id: '864711a27b306cf8c9b32c039561cdc0e587e213',
[07/05/2023, 11:08:25.748 PM]       duration: 20,
[07/05/2023, 11:08:25.748 PM]       status: 'running',
[07/05/2023, 11:08:25.748 PM]       build_tag: null,
[07/05/2023, 11:08:25.749 PM]       public_url: 'https://automate.browserstack.com/dashboard/v2/public-build/MkREaktEYlM1RGZoZG1hOXVUWGFmS09keXZmY1Bzc2hWTTI2cHQ2RGNtYVU4WFA3ZWxDRG9ucnRTeEZzYkR2QjBwRGMxVWJoN1J5SThHdFd6T0h4UXc9PS0tVkpoSmJFeUk3eGIyazQ4Q3dMa3FSQT09--4fa8f027dda0ced43ed88ebd0437d35010837fe7'
[07/05/2023, 11:08:25.749 PM]     }
[07/05/2023, 11:08:25.749 PM]   },
[07/05/2023, 11:08:25.749 PM]   {
[07/05/2023, 11:08:25.749 PM]     automation_build: {
[07/05/2023, 11:08:25.749 PM]       name: 'AUTOMATE_Customer_BS_WIN_usw_us-west-2a_2023-05-07 17:21:07 UTC_1',
[07/05/2023, 11:08:25.749 PM]       hashed_id: 'ae237858b15d811cf96026b4aeddbea5cc8d5098',
[07/05/2023, 11:08:25.749 PM]       duration: 959,
[07/05/2023, 11:08:25.749 PM]       status: 'running',
[07/05/2023, 11:08:25.749 PM]       build_tag: null,
[07/05/2023, 11:08:25.749 PM]       public_url: 'https://automate.browserstack.com/dashboard/v2/public-build/bVdFYXZSWVdpbzNhMHgxMjQzbTNQVlZFZWgzU2NzRmY1NExVZVNBTm4rdzlJdlhKcXhJakpwYkpKdFVDSUNXYlJETS9WbW51VUhPRTdHRmFFZjRSZUE9PS0tVXdmK1hxWnUyVkIzYURmQUFXN2xxQT09--2a3103936a7fa0a89d21661986cb5025dae39cae'
[07/05/2023, 11:08:25.749 PM]     }
[07/05/2023, 11:08:25.749 PM]   },
[07/05/2023, 11:08:25.749 PM]   {
[07/05/2023, 11:08:25.749 PM]     automation_build: {
[07/05/2023, 11:08:25.749 PM]       name: 'AUTOMATE_Performance_BS_WIN_apse_ap-southeast-2a_2023-05-07-17-37-17-UTC',
[07/05/2023, 11:08:25.749 PM]       hashed_id: 'e5b25b400d1d75db046a29db9c29630c1b17871c',
[07/05/2023, 11:08:25.749 PM]       duration: 34,
[07/05/2023, 11:08:25.749 PM]       status: 'running',
[07/05/2023, 11:08:25.749 PM]       build_tag: null,
[07/05/2023, 11:08:25.749 PM]       public_url: 'https://automate.browserstack.com/dashboard/v2/public-build/bFRQQjNjd0tpYit6TTUyeWtmMi9HTHBoV0k0UWRYZi8vTmt5K240YkdJMUdQeFp5eW5udW5tUmltaXcyazRBUXRza3FjVWpVQm1ldytlR0xDUjRpb0E9PS0tZWZtQVptL2VPQlo1SU9xWUFYRUxQUT09--14e39ff12a63f4894b09e1d549afaea0a556a6de'
[07/05/2023, 11:08:25.749 PM]     }
[07/05/2023, 11:08:25.749 PM]   },
[07/05/2023, 11:08:25.749 PM]   {
[07/05/2023, 11:08:25.749 PM]     automation_build: {
[07/05/2023, 11:08:25.749 PM]       name: 'AUTOMATE_Performance_BS_WIN_euw_eu-west-1b_2023-05-07-17-37-09-UTC',
[07/05/2023, 11:08:25.749 PM]       hashed_id: '459d0362bac38811fe9f534c9c2541ab3f9d337e',
[07/05/2023, 11:08:25.749 PM]       duration: 43,
[07/05/2023, 11:08:25.749 PM]       status: 'done',
[07/05/2023, 11:08:25.749 PM]       build_tag: null,
[07/05/2023, 11:08:25.749 PM]       public_url: 'https://automate.browserstack.com/dashboard/v2/public-build/VEJBYjB5Q3JmMTdSN0VFMUpOUzZCK25tclRiRW1zT0tsQnIxdDl0bHJEWTJQY2lraTFmaGlyRVdYa1MybXlhNDh4R2hpemtUTGR0ZGFuSTAyOFpNenc9PS0tSXhOcUtvU21PRmNLOWN6QWVUaHZYUT09--f05873176ec2960c5046a9e9e16e03f20df8bf4b'
[07/05/2023, 11:08:25.749 PM]     }
[07/05/2023, 11:08:25.749 PM]   },
[07/05/2023, 11:08:25.749 PM]   {
[07/05/2023, 11:08:25.749 PM]     automation_build: {
[07/05/2023, 11:08:25.750 PM]       name: 'AUTOMATE_Performance_BS_MAC_use_us-east-1d_2023-05-07-17-37-06-UTC',
[07/05/2023, 11:08:25.750 PM]       hashed_id: '99db4c377bfd63c4afc019f0355b56c1625c49b8',
[07/05/2023, 11:08:25.750 PM]       duration: 35,
[07/05/2023, 11:08:25.750 PM]       status: 'done',
[07/05/2023, 11:08:25.750 PM]       build_tag: null,
[07/05/2023, 11:08:25.750 PM]       public_url: 'https://automate.browserstack.com/dashboard/v2/public-build/eisxRmtBOTR4TXM1dnRJb0NBMGdKanBTTU5tZmk5MHdqRVRBdjd3Z0NXWmx1NG0xWDh3TjF3WkFCdXQySjhpK2NnMUdBSDJ0Z1BrV29GTnVGUkgveUE9PS0tdEJCMjR2YXo0TVBYaW9rY3FxamNaQT09--1496a63e392563864b9f61d608bd28db66e8664f'
[07/05/2023, 11:08:25.750 PM]     }
[07/05/2023, 11:08:25.750 PM]   },
[07/05/2023, 11:08:25.750 PM]   {
[07/05/2023, 11:08:25.750 PM]     automation_build: {
[07/05/2023, 11:08:25.750 PM]       name: 'AUTOMATE_Performance_BS_WIN_usw_us-west-1c_2023-05-07-17-36-30-UTC',
[07/05/2023, 11:08:25.750 PM]       hashed_id: '7601c601b50bc990ac9fb6bb3709e8301fd64989',
[07/05/2023, 11:08:25.750 PM]       duration: 48,
[07/05/2023, 11:08:25.750 PM]       status: 'done',
[07/05/2023, 11:08:25.750 PM]       build_tag: null,
[07/05/2023, 11:08:25.750 PM]       public_url: 'https://automate.browserstack.com/dashboard/v2/public-build/dHZTYnVjTyt3UkpQTE84dVdoZ0RaT09GYzlxQTF2MUxUYkZiYklUb1RkeWxWaE1iV3ZiOEdoakhuSnB4VnZxZ050cUZrS0dzRC9ZbEtXdjFOOGpvWnc9PS0tQ3JaSEN3RXRGSTRuelhkay85M1JxZz09--5d381f2588eda5b6786bdd722495145b57b6745c'
[07/05/2023, 11:08:25.750 PM]     }
[07/05/2023, 11:08:25.750 PM]   },
[07/05/2023, 11:08:25.750 PM]   {
[07/05/2023, 11:08:25.750 PM]     automation_build: {
[07/05/2023, 11:08:25.750 PM]       name: 'External monitoring - use - 2023-05-07',
[07/05/2023, 11:08:25.750 PM]       hashed_id: '47c5a6e5fa1761e3047c3e41032b794874ae209b',
[07/05/2023, 11:08:25.750 PM]       duration: 7447,
[07/05/2023, 11:08:25.750 PM]       status: 'timeout',
[07/05/2023, 11:08:25.750 PM]       build_tag: null,
[07/05/2023, 11:08:25.750 PM]       public_url: 'https://automate.browserstack.com/dashboard/v2/public-build/V0dEZ1RUeFlZRDNzNGFWZm54NG5jdzh0d01HekRRN3NsWlBUUERSMndhWm5oUHlZQ2tQRitqeXVjMHBlUFJSc05OeWZ4dTBVWUN0Q3A1eWEwZkxHUFE9PS0tbHllV3NWR3dYR2ozZ2s3VFN0ZDY2dz09--7c4ba03cab38e91242046f56753f66260ad1ee74'
[07/05/2023, 11:08:25.750 PM]     }
[07/05/2023, 11:08:25.750 PM]   },
[07/05/2023, 11:08:25.750 PM]   {
[07/05/2023, 11:08:25.750 PM]     automation_build: {
[07/05/2023, 11:08:25.750 PM]       name: 'AUTOMATE_Performance_BS_MAC_aps_ap-south-1c_2023-05-07-17-36-05-UTC',
[07/05/2023, 11:08:25.750 PM]       hashed_id: '0ef143dec66cb4cab4354f85436c059defc70b51',
[07/05/2023, 11:08:25.750 PM]       duration: 24,
[07/05/2023, 11:08:25.750 PM]       status: 'done',
[07/05/2023, 11:08:25.750 PM]       build_tag: null,
[07/05/2023, 11:08:25.751 PM]       public_url: 'https://automate.browserstack.com/dashboard/v2/public-build/RTMrbVVWQnJrRU02d0VsdWNaTTVCcVFkdnZuRklBMWdQYld2Z0toUUNpTC9qdEpsTDZKS1NuTlNORW93N2tMQWNHL2kvcGY4Zy9QUEJvZ0lRVk9tN0E9PS0tcVNROUlhdGFVcGUyb2Y4NXlNbjdqZz09--45e674b33f562b3bab617ea087a99e8fe7157d14'
[07/05/2023, 11:08:25.751 PM]     }
[07/05/2023, 11:08:25.751 PM]   },
[07/05/2023, 11:08:25.751 PM]   {
[07/05/2023, 11:08:25.751 PM]     automation_build: {
[07/05/2023, 11:08:25.751 PM]       name: 'AUTOMATE_Customer_BS_WIN_use_us-east-3a_2023-05-07 17:18:18 UTC_1',
[07/05/2023, 11:08:25.751 PM]       hashed_id: '950773fd9e3909f360d148b3b7777725f9d3eeca',
[07/05/2023, 11:08:25.751 PM]       duration: 1087,
[07/05/2023, 11:08:25.751 PM]       status: 'failed',
[07/05/2023, 11:08:25.751 PM]       build_tag: null,
[07/05/2023, 11:08:25.751 PM]       public_url: 'https://automate.browserstack.com/dashboard/v2/public-build/R3pxMURXTURmTCtQc1RhRlI1djNJWEdRZ1lPWHhaVlNKWG93SW5Cdko1V0tiRUw5SlcvNEMvdXU0WW85akhPUjcrdGtZaXNQZW5NNlV4dWpWU0FINHc9PS0taWVuS3JSLzY4OGRpZjRkdDhVaDRoQT09--bdb30c3c7ade46dc8a65fd0a925100097d526315'
[07/05/2023, 11:08:25.751 PM]     }
[07/05/2023, 11:08:25.751 PM]   }
[07/05/2023, 11:08:25.751 PM] ]
[07/05/2023, 11:08:26.690 PM]    Response 200 PUT https://api.browserstack.com/automate/sessions/1f95a1c99c73571b766eb6247f7c2c3f5b328243.json (979ms)
[07/05/2023, 11:08:26.690 PM]    {
[07/05/2023, 11:08:26.690 PM]      automation_session: {
[07/05/2023, 11:08:26.690 PM]        hashed_id: '1f95a1c99c73571b766eb6247f7c2c3f5b328243',
[07/05/2023, 11:08:26.690 PM]        name: 'ticket_898335_upload_image_herokuapp_sample_website',
[07/05/2023, 11:08:26.690 PM]        status: 'failed',
[07/05/2023, 11:08:26.690 PM]        os: 'android',
[07/05/2023, 11:08:26.690 PM]        os_version: '12.0',
[07/05/2023, 11:08:26.690 PM]        browser: 'chrome_android',
[07/05/2023, 11:08:26.691 PM]        browser_version: null,
[07/05/2023, 11:08:26.691 PM]        device: 'Google Pixel 6 Pro',
[07/05/2023, 11:08:26.691 PM]        duration: 49,
[07/05/2023, 11:08:26.691 PM]        reason: 'TimeoutError: An error occurred while running .uploadFile() command on <#file-upload>: keys.split is not a function',
[07/05/2023, 11:08:26.691 PM]        build_name: 'ticket_898335_upload_image',
[07/05/2023, 11:08:26.691 PM]        project_name: 'Untitled Project',
[07/05/2023, 11:08:26.691 PM]        build_hashed_id: '52f56747d5590cfa45d017a1a9aafb62baadd430',
[07/05/2023, 11:08:26.691 PM]        test_priority: null
[07/05/2023, 11:08:26.691 PM]      }
[07/05/2023, 11:08:26.691 PM]   }

[07/05/2023, 11:08:26.691 PM]   See more info, video, & screenshots on Browserstack:
[07/05/2023, 11:08:26.691 PM]   https://automate.browserstack.com/builds/52f56747d5590cfa45d017a1a9aafb62baadd430/sessions/1f95a1c99c73571b766eb6247f7c2c3f5b328243

[07/05/2023, 11:08:26.829 PM] ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

[07/05/2023, 11:08:26.829 PM]   ️TEST FAILURE (52.96s): 
[07/05/2023, 11:08:26.829 PM]    - 1 error during execution; 
[07/05/2023, 11:08:26.829 PM]    - 0 tests failed; 
[07/05/2023, 11:08:26.829 PM]    - 0/1 tests passed

[07/05/2023, 11:08:26.831 PM]    ✖ 1) ticket_898335_upload_image_herokuapp_sample_website

[07/05/2023, 11:08:26.831 PM]    – Bstack Demo (23.912s)

[07/05/2023, 11:08:26.831 PM]    TimeoutError
[07/05/2023, 11:08:26.831 PM]    An error occurred while running .uploadFile() command on <#file-upload>: keys.split is not a function
[07/05/2023, 11:08:26.831 PM]     {"error":{},"status":-1,"value":null}

[07/05/2023, 11:08:26.831 PM]     Error location:
[07/05/2023, 11:08:26.831 PM]     <error_location_path>:
[07/05/2023, 11:08:26.831 PM]     –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
[07/05/2023, 11:08:26.831 PM]      7 |     browser.pause(5000);
[07/05/2023, 11:08:26.831 PM]      8 | 
[07/05/2023, 11:08:26.831 PM]      9 |     browser.uploadFile('#file-upload', '<absolute_path_of_the_file_to_be_attached>'); 
[07/05/2023, 11:08:26.831 PM]      10 |     
[07/05/2023, 11:08:26.831 PM]      11 |     browser.pause(5000);
[07/05/2023, 11:08:26.831 PM]     –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––

[07/05/2023, 11:08:26.831 PM]   - OTHER ERRORS:
[07/05/2023, 11:08:26.831 PM]   Error
[07/05/2023, 11:08:26.831 PM]     TimeoutError
[07/05/2023, 11:08:26.831 PM]    An error occurred while running .uploadFile() command on <#file-upload>: keys.split is not a function
[07/05/2023, 11:08:26.831 PM]     {"error":{},"status":-1,"value":null}

[07/05/2023, 11:08:26.831 PM]     Error location:
[07/05/2023, 11:08:26.831 PM]     <error_location_path>:
[07/05/2023, 11:08:26.831 PM]     –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
[07/05/2023, 11:08:26.831 PM]      7 |     browser.pause(5000);
[07/05/2023, 11:08:26.831 PM]      8 | 
[07/05/2023, 11:08:26.831 PM]      9 |     browser.uploadFile('#file-upload', '<absolute_path_of_the_file_to_be_attached>'); 
[07/05/2023, 11:08:26.831 PM]      10 |     
[07/05/2023, 11:08:26.831 PM]      11 |     browser.pause(5000);
[07/05/2023, 11:08:26.832 PM]     –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––

[07/05/2023, 11:08:26.965 PM]  Wrote HTML report file to: /Users/<username>/Desktop/BrowserStack Tickets Resolution/Nightwatch/nightwatch-browserstack/tests_output/nightwatch-html-report/index.html

[07/05/2023, 11:08:27.039 PM]  Wrote XML report file to: /Users/<username>/Desktop/BrowserStack Tickets Resolution/Nightwatch/nightwatch-browserstack/tests_output/CHROME__LINUX_ticket_898335_upload_image_herokuapp_sample_website.xml
[07/05/2023, 11:08:27.041 PM]  Wrote JSON report file to: /Users/<username>/Desktop/BrowserStack Tickets Resolution/Nightwatch/nightwatch-browserstack/tests_output/CHROME__LINUX_ticket_898335_upload_image_herokuapp_sample_website.json
[07/05/2023, 11:08:27.065 PM] npm ERR! code ELIFECYCLE
[07/05/2023, 11:08:27.065 PM] npm ERR! errno 5
[07/05/2023, 11:08:27.073 PM] npm ERR! nightwatch-browserstack@1.0.0 single_herokuapp: `nightwatch --verbose --test ./tests/single/ticket_898335_upload_image_herokuapp_sample_website.js --env browserstack.android`
[07/05/2023, 11:08:27.073 PM] npm ERR! Exit status 5
[07/05/2023, 11:08:27.073 PM] npm ERR! 
[07/05/2023, 11:08:27.073 PM] npm ERR! Failed at the nightwatch-browserstack@1.0.0 single_herokuapp script.
[07/05/2023, 11:08:27.073 PM] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

[07/05/2023, 11:08:27.079 PM] npm ERR! A complete log of this run can be found in:
[07/05/2023, 11:08:27.079 PM] npm ERR!     /Users/<username>/.npm/_logs/2023-05-07T17_38_27_067Z-debug.log
[07/05/2023, 11:08:27.090 PM] %

Nightwatch Configuration

const bstackOptions = {
  'bstack:options' : {
      "deviceName" : "Google Pixel 6 Pro",
      "osVersion" : "12.0",
      "buildName" : "<BUILD_NAME>",
      "sessionName" : "<SESSION_NAME>",
      "local" : "false",
      "appiumVersion": '2.0.0',
      "interactiveDebugging": 'true',
      "debug": 'true',
      "networkLogs": 'true',
      userName: '${BROWSERSTACK_USERNAME}',
      accessKey: '${BROWSERSTACK_ACCESS_KEY}'
  },
}

const browserStack = {
  webdriver: {
      start_process: false,
      timeout_options: 5000000
    },

    selenium: {
      host: 'hub-cloud.browserstack.com',
      port: 443
    },

    desiredCapabilities: {
       browserName: 'chrome',
      ...bstackOptions
    }
}

module.exports = {
  src_folders: [],

  test_settings: {
    default: {
      launch_url: 'https://nightwatchjs.org'
    },

    browserstack:  {
        ...browserStack
    },

    "browserstack.android": {
      ...browserStack,
      desiredCapabilities:{
          browserName: 'chrome',
          useW3C: 'true',
          ...bstackOptions
      }
    }
  }
}

Nightwatch.js Version

2.6.20

Node Version

14.16.0

Browser

Chrome 111.0.5563.115

Operating System

Android 12.0

Additional Information

The error is observed over multiple Android versions.

The workaround to achieve the use case of uploading attachments on Android browsers using NightwatchJs is -

var fs = require('fs');

module.exports = { "Bstack Demo": async function (browser) { browser.executeScript('mobile: pushFile', {remotePath: '/data/local/tmp/<name_of_the_file_attached_with_file_extension>, payload: new Buffer.from(fs.readFileSync('<absolute_path_of_the_file_to_be_attached>'))}); } };

Note: mobile: pushFile is supported only with AppiumVersion >= 2.0.0

swrdfish commented 1 year ago

The issue is reproducible only with Appium.

Browserstack provides some workarounds for this problem: https://www.browserstack.com/docs/app-automate/appium/advanced-features/upload-files#nodejs