Pārlūkot izejas kodu

travis run dusk

jqh 5 gadi atpakaļ
vecāks
revīzija
92b66cbaa0
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      tests/ChromeProcess.php

+ 5 - 1
tests/ChromeProcess.php

@@ -15,7 +15,11 @@ class ChromeProcess extends BaseChromeProcess
         } elseif ($this->onMac()) {
             $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-mac');
         } else {
-            $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-linux');
+            if (is_file('/usr/bin/google-chrome')) {
+                $this->driver = '/usr/bin/google-chrome';
+            } else {
+                $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-linux');
+            }
         }
     }
 }