0
我無法在MAC OS中執行測試。我已經安裝了firefox(它在應用程序文件夾中),我試圖設置Firefox的二進制路徑,我不知道,因爲我是新來的MAC,但它仍然不工作..我已附加設置Firefox二進制文件的截圖,但我我不確定這是否正確。請爲我提供解決方案以解決問題。在PATH中找不到firefox二進制文件。確保安裝了firefox。操作系統似乎是:MAC
我得到了一個錯誤如下
Exception in thread "main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: MAC
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40'
System info: host: 'ADMINISTRATORs-Mac-mini-2.local', ip: '172.16.105.81', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.3', java.version: '1.8.0_91'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.Executable.<init>(Executable.java:74)
at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:60)
at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:56)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at myLearning.firstClass.main(firstClass.java:16)