FindElement是由“隐式等待”设置引起的。您可以将其临时设置为其他值
driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(0)); // setting to 0 will check one time only when using FindElement// look for the elementsdriver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(original settings));
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)