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

前端 未结 3 1729
死守一世寂寞
死守一世寂寞 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:28

    I try with this and it's working:

    1. Install FirefoxDevEdition
    2. Download geckodriver.exe

    FirefoxDriverService service = FirefoxDriverService.CreateDefaultService(@"C:\Users\jmalpartida\Downloads\geckodriver-v0.8.0-win32", "geckodriver.exe");
    service.Port = 64444;
    service.FirefoxBinaryPath = @"C:\Program Files (x86)\Firefox Developer Edition\firefox.exe";
    IWebDriver driver = new FirefoxDriver(service);
    

提交回复
热议问题