c# Selenium 2.53 moving to marionette driver after firefox upgrade to 47

前端 未结 3 1725
死守一世寂寞
死守一世寂寞 2020-12-18 13:09

I am trying to move into the upgraded firefox web browser automation using selenium. It seems that selenium needs marionette driver to continue working. I followed the instr

3条回答
  •  离开以前
    2020-12-18 13:22

    I too got the "Entity Not Found" error using FirefoxDriver(new FirefoxOptions()). It appears to be looking for firefox.exe in C:\Program Files (x86)\Nightly and not finding it. I found this working :

    FirefoxDriverService service = FirefoxDriverService.CreateDefaultService();
    service.FirefoxBinaryPath = @"C:\Program Files (x86)\Mozilla Firefox\firefox.exe";
    IWebDriver driver = new FirefoxDriver(service);
    

提交回复
热议问题