devtools-core
devtools-core copied to clipboard
yarn run firefox - linux
yarn run firefox
cannot find the firefox path on linux
here is where selenium does the lookup.
here's a patch to think about extending the $PATH
variable
diff --git a/packages/devtools-launchpad/bin/firefox-driver.js b/packages/devtools-launchpad/bin/firefox-driver.js
index 3a0d911..fd3c4e8 100755
--- a/packages/devtools-launchpad/bin/firefox-driver.js
+++ b/packages/devtools-launchpad/bin/firefox-driver.js
@@ -42,6 +42,11 @@ function binaryArgs() {
}
function firefoxBinary() {
+ // => binary path...
+ // we might need to do something where we append to the path
+ // maybe like this but different
+ // process.env.PATH += `:${__dirname}`;
+
let binary = new firefox.Binary();
I think it's now handled by selenium?