How to get Firefox working with Selenium WebDriver on Mac OSX

前端 未结 8 1604
慢半拍i
慢半拍i 2020-12-14 03:12

I am trying to config proxy settings for the WebDriver so I have used the following code ....

FirefoxProfile profile = new FirefoxProfile();
pro         


        
相关标签:
8条回答
  • 2020-12-14 04:05

    On Mac OS X, I was receiving a WebDriver error like "Could not find Firefox binary (os=macosx)" when attempting to run a script.

    I discovered that my problem was that a renamed my Firefox app to "Firefox 22". The WebDriver stuff expected just "Firefox".

    0 讨论(0)
  • 2020-12-14 04:07

    i met this problem before, it's very easy to fix it.

    on Windows, modify the environment variables , add the firefox path to the PATH variable.

    it's should be similar on Mac, just export PATH=/my/firefox/path/bin:$PATH in your profile file.

    0 讨论(0)
提交回复
热议问题