No connection could be made because the target machine actively refused it(selenium)

后端 未结 7 716
别那么骄傲
别那么骄傲 2021-02-07 00:59

I have extracted the following code from selenium IDE.(c# remote control)

using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Thr         


        
7条回答
  •  爱一瞬间的悲伤
    2021-02-07 01:14

    I got this because a part of my code held a reference to a stale driver.

    var driver1 = new OpenQA.Selenium.Firefox.FirefoxDriver();
    driver1.Close();
    driver1.Quit();
    driver1.Dispose();
    
    var x = driver1.FindElements(...);
    

提交回复
热议问题