最新の Chrome と Webdriver 2.33 を使用していますが、IgnoreExceptionTypes
. 以下のコードでは、webdriver も期待どおりに待機しますが、実際には例外を無視しません。
WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(8));
wait.IgnoreExceptionTypes(
typeof(WebDriverTimeoutException),
typeof(NoSuchElementException)
);
wait.Until(ExpectedConditions.ElementIsVisible(By.XPath(firstResultX)));
コードは try/catch にあります。try/catch の外に移動しようとしましたが、同じ問題が発生しました。ここからどこに行けばよいかわかりません。助けていただければ幸いです。