Skip to content

Could not connect to WebDriver if trying to run tests on browser stack #1423

@KaterynaGubar

Description

@KaterynaGubar

What are you trying to achieve?

I want to test site on mobile device, using browserstack

What do you get instead?

Can't connect to WebDriver

Provide console output if related. Use --verbose mode for more details.

# paste output here

Can't connect to WebDriver.
Error: getaddrinfo ENOTFOUND http http:80

Please make sure Selenium Server (ChromeDriver or PhantomJS) is running and accessible

**output with verbose:**

  [1] Starting recording promises
    Emitted | suite.before ([object Object])
  "Previous" CTA on Select Shop page to become Back Button @mobile @BKM-223
    Emitted | test.before ([object Object])
    [1] Error | Error: Can't connect to WebDriver.
Error: getaddrinfo ENOTFOUND http http:80

Please make sure Selenium Server (ChromeDriver or PhantomJS) is running and accessible
    Emitted | test.failed ([object Object])
  × "before each" hook: codeceptjs.before for ""Previous" CTA on Select Shop page to become Back Button @mobile @BKM-223" in 9049ms
    [1] Error | Error: Can't connect to WebDriver.
Error: getaddrinfo ENOTFOUND http http:80

Please make sure Selenium Server (ChromeDriver or PhantomJS) is running and accessible
Error: Can't connect to WebDriver.
Error: getaddrinfo ENOTFOUND http http:80

Please make sure Selenium Server (ChromeDriver or PhantomJS) is running and accessible
    Emitted | test.after ([object Object])
    Emitted | suite.after ([object Object])

Details

  • CodeceptJS version: 1.4.4
  • NodeJS Version: 8.11.3
  • Operating System: Windows 10
  • Protractor: 5.4.1
  • Configuration file:

appium.conf.js:

exports.config = {
output: "./output",
helpers: {
REST: {
endpoint: "",
defaultHeaders: {
appId: "***********************************"
}
},
Appium: {
browser: "iPhone",
device: "iPhone 8 Plus",
realMobile: true,
os_version: "11.0",
user: "
",
key: "********",
host: "http://hub-cloud.browserstack.com/wd/hub",
baseUrl: '
*******',
waitForTimeout: 60000
},
MyHelper: {
require: "./page_objects/helpers/MyHelper.js"
}
},

include: {
    I: "./steps/custom_steps.js",
    ....
},
mocha: {},
bootstrap: false,
teardown: null,
hooks: [],
gherkin: {},
plugins: {
    allure: {
        enabled: true
    }
},
tests: "./tests/*/*_test.js",
timeout: 10000,
name: "ui"

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions