소스 검색

travis run dusk

jqh 5 년 전
부모
커밋
92b66cbaa0
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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');
+            }
         }
     }
 }