How to get Firefox working with Selenium WebDriver on Mac OSX

前端 未结 8 1635
慢半拍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 03:56

    I'm not sure about on a Mac, but on Windows I resolved this issue.

    Make sure you are using the 32 bit version of nunit. Firefox is a 32 bit browser.

    I have a 64 bit windows OS, but Firefox is a 32 bit browser. I was trying to use the 64 bit version of nunit, which was giving this "Cannot fine firefox binary in PATH" error. I resolved this by using the 32 bit version of nunit. Basically, there are two exe files in the nunit folder, nunit.exe and nunit-x86.exe. If you are getting this "Cannot fine firefox binary in PATH" error, most likely you need to use the 32 bit version of nunit - the Nunit-x86.exe.

提交回复
热议问题