-
Notifications
You must be signed in to change notification settings - Fork 189
Closed
Description
I feel like I'm missing something fundamental, as the explicit wait feature doesn't seem to actually ignore exceptions no matter what I try. I also never see my condition executed more than once, even if the timeout is 60 seconds and the polling interval is 1 second. Does this feature work at all or am I misusing it?
var wait = new WebDriverWait(Session, TimeSpan.FromSeconds(120));
wait.IgnoreExceptionTypes(typeof(Exception));
wait.Until(s =>
{
var tree = Session.FindElementByXPath("//Tree[@Name='Solution Explorer']");
return tree.FindElementByXPath("//TreeItem[@Name='Acme4301']");
});