jqh 5 年之前
父節點
當前提交
f0f113e9e4
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      tests/ChromeProcess.php

+ 2 - 3
tests/ChromeProcess.php

@@ -12,10 +12,9 @@ class ChromeProcess extends BaseChromeProcess
 
         if ($this->onWindows()) {
             $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-win.exe');
+        } elseif ($this->onMac()) {
+            $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-mac');
         }
-        //elseif ($this->onMac()) {
-        //    $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-mac');
-        //}
         //else {
         //    $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-linux');
         //}