Skip to content

Conversation

kobenguyent
Copy link
Collaborator

Motivation/Description of the PR

Waits for the specified cookie in the cookies.

I.waitForCookie("token");

Parameters

  • name [string][9] expected cookie name.
  • sec [number][20] (optional, 3 by default) time in seconds to wait

Returns void automatically synchronized promise through #recorder

Applicable helpers:

  • Playwright
  • Puppeteer
  • WebDriver

Type of change

  • 🚀 New functionality

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

@kobenguyent kobenguyent merged commit 6f99119 into 3.x Feb 4, 2024
@kobenguyent kobenguyent deleted the feat-waitForCookies branch February 4, 2024 05:10
@kobenguyent kobenguyent mentioned this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The waitCookie method is missing
1 participant