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

api: add isChecked method #4953

Merged
merged 1 commit into from
Jan 9, 2021
Merged

api: add isChecked method #4953

merged 1 commit into from
Jan 9, 2021

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Jan 8, 2021

This adds {Page,Frame}.isChecked(selector) and ElementHandle.isChecked() methods.

Useful to do assertions in tests:

await page.click('text="Add TODO"');
expect(await page.isChecked('.item-done')).toBe(false);

This adds `{Page,Frame}.isChecked(selector)` and `ElementHandle.isChecked()` methods.

Useful to do assertions in tests:
```js
await page.click('text="Add TODO"');
expect(await page.isChecked('.item-done')).toBe(false);
```
@dgozman dgozman merged commit 5a2cfdb into microsoft:master Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants