Skip to content

Explicit wait not ignoring exceptions #457

@kfertitta

Description

@kfertitta

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']");
            });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions