Skip to content

Using chrome driver #5

Closed
Closed
@lvismer

Description

@lvismer

Does codeceptjs support alternate webdrivers. I tried starting selenium with the chrome driver. I'm on a mac (10.11). I downloaded the chromedriver, downloaded the selenium jar file.

Starting selenium like this:

java -Dwebdriver.chrome.driver="./chromedriver" -jar selenium-server-standalone-2.48.2.jar

Then my codecept.json file

{
  "tests": "./*_test.js",
  "timeout": 10000,
  "output": "./output",
  "helpers": {
    "WebDriverIO": {
      "url": "http://test.localhost",
      "browser": "chrome"
    }
  },
  "include": {},
  "mocha": {},
  "name": "Testing"
}

However when I run $ codeceptjs run it complains about firefox not being installed. I presume selenium by default ships with the firefox driver.

Sorry I am completely new to selenium.

Leon

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