WPF-Pilot / WpfPilot

https://wpfpilot.dev
Other
10 stars 5 forks source link

Add retries to `Assert` #11

Closed ELanning closed 1 month ago

ELanning commented 1 month ago

Devs need to be able to write code like this:

appDriver.GetElement(x => x["Name"] == "LoginButton")
    .Click()
    .Assert(x => x["Text"] != "Logging in...", timeoutMs: 30_000);

I should be able to get to this soon.

ELanning commented 1 month ago

Added here: https://github.com/WPF-Pilot/WpfPilot/commit/88272db0b267dff6cdd34a6094c55ef5573efa77

Will be shipped when I fix the multi-window issue.