Commit Graph

3 Commits

Author SHA1 Message Date
Alex Maitland cafd378859 Test - Code Cleanup
- Start splitting tests out into own files where relevant
- Improve call ordering
- Use Assert.RaisesAsync where possible
- Classes have been renamed (Tests is now the standard suffix)

TODO: Some of the classes still need their method names changed
2023-02-17 13:53:23 +10:00
Alex Maitland a51da76ad9 OffScreen - Add useLegacyRenderHandler optional param to constructor
- Defaults to true
- For those using CaptureScreenshotAsync set to false to avoid
  creating DefaultRenderHandler
2023-01-15 11:33:08 +10:00
Alex Maitland d701cee655 Enhancement - Add WaitForSelectorAsync extension method. (#4095)
* Enhancement - Add WaitForSelectorAsync extension method.

string script = "const newDiv = document.createElement('div'); newDiv.id = 'myElement'; document.body.append(newDiv);";
await Task.WhenAll(
     browser.WaitForSelectorAsync("#myElement");,
     chromiumWebBrowser.EvaluateScriptAsync(script));

Resolves #4094
2022-05-30 12:00:18 +10:00