Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate BrowserContext APIs to async #1295

Open
5 of 6 tasks
Tracked by #428
ankur22 opened this issue May 2, 2024 · 0 comments
Open
5 of 6 tasks
Tracked by #428

Migrate BrowserContext APIs to async #1295

ankur22 opened this issue May 2, 2024 · 0 comments
Assignees
Labels
async supports async (promises) breaking PRs that need to be mentioned in the breaking changes section of the release notes browser context Issues and PRs related to browser context

Comments

@ankur22
Copy link
Collaborator

ankur22 commented May 2, 2024

What

Migrate the following APIs according to the How section in #428:

Class Method Current k6 Return PW return
BrowserContext addCookies void Promise
BrowserContext addInitScript void not found in Playwright
BrowserContext browser Browser null|Browser
BrowserContext clearCookies void Promise
BrowserContext clearPermissions void Promise
BrowserContext close void Promise
BrowserContext cookies Cookie[] Promise<Array>
BrowserContext grantPermissions void Promise
BrowserContext newPage Page Promise
BrowserContext setGeolocation void Promise
BrowserContext setOffline void Promise

For details on the Why and How, check the overarching issue in #428.

Tasks

  1. bug mapping
    inancgumus
  2. mapping refactor stability
    inancgumus
  3. async breaking browser context mapping
    inancgumus
  4. Area: browser
    inancgumus
  5. allansson
@ankur22 ankur22 mentioned this issue May 2, 2024
17 tasks
@ankur22 ankur22 added the async supports async (promises) label May 2, 2024
@inancgumus inancgumus added the breaking PRs that need to be mentioned in the breaking changes section of the release notes label May 6, 2024
@inancgumus inancgumus self-assigned this May 9, 2024
@inancgumus inancgumus added the browser context Issues and PRs related to browser context label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
async supports async (promises) breaking PRs that need to be mentioned in the breaking changes section of the release notes browser context Issues and PRs related to browser context
Projects
None yet
Development

No branches or pull requests

2 participants