Selenium WebDriver throws Timeout exceptions sporadically

前端 未结 8 1339
感情败类
感情败类 2020-12-01 07:43

Using selenium for ui tests on our project. We are running the newest version 2.30.0. We use Firefox WebDriver and are running Firefox 19.0.

Generally said the ui te

8条回答
  •  有刺的猬
    2020-12-01 08:21

    Try this code:

      DesiredCapabilities caps = DesiredCapabilities.Firefox();   
    
     //set the timeout to 120 seconds
     IWebDriver driver = new RemoteWebDriver(new Uri(""), caps, TimeSpan.FromSeconds(120));
    

提交回复
热议问题