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

Update methods on ElementHandle type to return Promises #49

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

allansson
Copy link

Please fill in this template.


/**
* Fetch the element's attribute value.
* @param name Attribute name to get the value for.
* @returns Attribute value.
*/
getAttribute(name: string): string | null;
getAttribute(name: string): Promise<string | null>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An update to return null is coming soon!

Copy link
Member

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfecto 🎉 Thanks a lot 🙇

Copy link

@ankur22 ankur22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@inancgumus
Copy link
Member

@allansson We can merge this 👍

@allansson allansson merged commit 67cddf9 into master-async-browser Jun 12, 2024
1 check passed
@inancgumus inancgumus deleted the async/async-element-handle branch June 12, 2024 13:45
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