Udemy Playwright: Web Automation Testing From Zero to Hero: Difference between revisions

Jump to navigation Jump to search
m
Line 305: Line 305:


=== Timeouts ===
=== Timeouts ===
* 3 layers
==== Global Timeout ====
: time limit for whole test suite to run
: default: no limit
====Test Timeout====
:Within the global timeout, it is the time limit for a single test
: default: 30000ms
====Action, Navigation, Expect====
: Withing the global and test timeout there are the following timeouts
:* Action = click(), fill(), textContent() etc
:: default: no limit
:* Navigation = page.goto(url...)
:: default: no limit
:* Expect = locator assertions
:: default: 5000ms
:: Note: regular expect assertions execute immediately, only locator exceptions will wait.

Navigation menu