waitForSelector
Returns when element specified by selector satisfies state option.Returns null if waiting for hidden or detached. Returns the ElementHandle matching the selector in visible/attached states. Discouraged: use locator-based locator.waitFor() instead.
Return value
waitForTimeout
Waits for the given timeout in milliseconds.Note: This should never be used in production. Tests that wait for time are inherently flaky. Use Locator actions and web assertions that wait automatically.
waitForFunction
Returns when the pageFunction returns a truthy value.It resolves to a JSHandle of the truthy value. The function is called periodically. You can pass a polling interval.
Return value

