playwright-dotnet icon indicating copy to clipboard operation
playwright-dotnet copied to clipboard

[Feature] Would like to be able to set a default Action Timeout in runsettings

Open ThomasPoucher opened this issue 2 years ago • 4 comments

Currently when using methods such as ClickAsync the timeout seems to be infinite unless specified through an options class when calling the method. I've had a look at the different timeout options on the Page object and also runsettings and these do not seem to impact the methods such as ClickAsync and ElementHandleAsync. I have however noticed that the NodeJS playwright has an ActionTimeout in the documentation https://playwright.dev/docs/test-timeouts#test-timeout

It would be great if we were able to set the action timeout in the runsettings file for our NUnit tests and potentially on the browser/page objects to prevent any potential test hangs and give feedback faster when creating tests if a locator is incorrect. Thanks

ThomasPoucher avatar Jan 06 '23 15:01 ThomasPoucher

Use these methods a lot too and this feature would be greatly appreciated :)

Luke-Stevens423 avatar Dec 06 '23 13:12 Luke-Stevens423