playwright-dotnet
playwright-dotnet copied to clipboard
[Feature] Implement Custom Expect Message option
It would be nice and useful to have Custom Message on Assertion Error e.g.
var locator = Page.Locator(".my-element");
await Expect(locator, "My Element is not visible!").ToBeVisibleAsync();
This feature is already implemented in Node.js (see Custom Expect Message) so I believe it's quite straightforward and clear what its purpose is.
Would very much like this.
can we please have this, we have to use Fluent assertion library to get that, it would be great if we can add this, it can avoid some print statements as well