Waits for a selector to become visible.
Context object.
the selector to wait for.
Optional
Wait for selector options.
await waitForSelector(ctx, '#save-button');await waitForSelector(ctx, '//button[@id="save-button"]'); // Supports XPath Copy
await waitForSelector(ctx, '#save-button');await waitForSelector(ctx, '//button[@id="save-button"]'); // Supports XPath
Waits for a selector to become visible.