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 Locator APIs to async #1305

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

Migrate Locator APIs to async #1305

inancgumus opened this issue May 6, 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

Comments

@inancgumus
Copy link
Member

inancgumus commented May 6, 2024

Tasks

  1. mapping refactor stability
    inancgumus
  2. async breaking mapping
    inancgumus
  3. Area: browser
    inancgumus
  4. browser
    allansson

What

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

Class Method Current k6 Return PW return
Locator clear void Promise
Locator dblclick void Promise
Locator check void Promise
Locator uncheck void Promise
Locator isChecked boolean Promise
Locator isDisabled boolean Promise
Locator isEditable boolean Promise
Locator isEnabled boolean Promise
Locator isHidden boolean Promise
Locator isVisible boolean Promise
Locator fill void Promise
Locator focus void Promise
Locator getAttribute string|null Promise<null|string>
Locator innerHTML string Promise
Locator innerText string Promise
Locator textContent string Promise<null|string>
Locator inputValue string Promise
Locator selectOption string[] Promise<Array>
Locator press void Promise
Locator type void Promise
Locator hover void Promise
Locator dispatchEvent void Promise
Locator waitFor void Promise

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

@inancgumus inancgumus mentioned this issue May 6, 2024
17 tasks
@inancgumus inancgumus added async supports async (promises) breaking PRs that need to be mentioned in the breaking changes section of the release notes labels May 6, 2024
@inancgumus inancgumus self-assigned this 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
Projects
None yet
Development

No branches or pull requests

1 participant