Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Chrome driver should support linux #71

@jasonLaster

Description

@jasonLaster

@wldcordeiro and I worked on a quick patch for chrome, but here's the gist of it:

diff --git a/packages/devtools-launchpad/bin/chrome-driver.js b/packages/devtools-launchpad/bin/chrome-driver.js
index 7670a01..764bf44 100644
--- a/packages/devtools-launchpad/bin/chrome-driver.js
+++ b/packages/devtools-launchpad/bin/chrome-driver.js
@@ -1,8 +1,12 @@
 #!/usr/bin/env node

 const spawn = require('child_process').spawn;
+const isLinux = /^linux/.test(process.platform);

-const chromeBinary = "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
+let chromeBinary= = "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome";
+if (isLinux) {
+  chromeBinary = /* some linuxy solution for finding the path */
+}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions