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

Aperta
#2,444 6 commenti 7 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dgozman ci sta già lavorando.

Dal 6/11/2026.

  • #3418 di @dgozman — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
testing

Direzione di ricerca

Inizia tracciando come vengono gestite le opzioni di timeout esistenti di Page e i valori di runsettings per metodi come ClickAsync ed ElementHandleAsync. Confronta il comportamento desiderato con la documentazione NodeJS ActionTimeout; il lavoro è completato quando i test NUnit possono configurare un timeout di azione predefinito tramite runsettings e, se supportato, tramite oggetti browser o page.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs-triage

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

Lingua principale
C#
Stelle
3k
Fork
307
Merge medio
1g 13h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/playwright-dotnet

Tutte le issue di microsoft/playwright-dotnet

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.