Skip to content

feat(clear): remove clear() methods from all classes except Locator#18703

Merged
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:remove-clear-apis
Nov 10, 2022
Merged

feat(clear): remove clear() methods from all classes except Locator#18703
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:remove-clear-apis

Conversation

@dgozman
Copy link
Copy Markdown
Collaborator

@dgozman dgozman commented Nov 10, 2022

The preferred way is to use the locator, so we should not encourage the use of ElementHandle or Page in the new APIs.

The preferred way is to use the locator, so we should not encourage
the use of `ElementHandle` or `Page` in the new APIs.
@dgozman dgozman merged commit 7c80b77 into microsoft:main Nov 10, 2022
@jfgreffier
Copy link
Copy Markdown
Contributor

My bad, I had no idea. So this basically means no new methods on ElementHandle or Page ?

@dgozman
Copy link
Copy Markdown
Collaborator Author

dgozman commented Nov 16, 2022

My bad, I had no idea. So this basically means no new methods on ElementHandle or Page ?

Well, the answer is "it depends" 😄 But as a rule of thumb, no new methods on Page that take a selector, or new methods on ElementHandle.

@jfgreffier
Copy link
Copy Markdown
Contributor

Fair enough 😀
Thanks

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.

3 participants