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

Improve GetAttribute null attribute detection #1370

Merged
merged 4 commits into from
Jun 6, 2024

Conversation

inancgumus
Copy link
Member

@inancgumus inancgumus commented Jun 5, 2024

What?

The GetAttribute methods now return false when the attribute is missing.

Why?

Previously, these methods returned an empty string (""). That approach makes it impossible to distinguish between whether the attribute is missing or empty.

Note

I'm happy to convert the tests into table tests if desired.

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

#428

@inancgumus inancgumus self-assigned this Jun 5, 2024
@inancgumus inancgumus added enhancement New feature or request playwright Issue relating to Playwright compatibility labels Jun 5, 2024
@inancgumus inancgumus force-pushed the improve/get-attribute-null-detection branch from 37d3775 to 359cb96 Compare June 5, 2024 14:58
@inancgumus inancgumus requested a review from ankur22 June 6, 2024 08:14
@inancgumus inancgumus marked this pull request as ready for review June 6, 2024 08:14
Copy link
Collaborator

@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 inancgumus changed the title Improve GetAttribute null detection Improve GetAttribute null attribute detection Jun 6, 2024
Base automatically changed from async/frame to main-async June 6, 2024 15:19
@inancgumus inancgumus force-pushed the improve/get-attribute-null-detection branch from 359cb96 to a348af1 Compare June 6, 2024 15:20
@inancgumus inancgumus merged commit 083279b into main-async Jun 6, 2024
13 of 14 checks passed
@inancgumus inancgumus deleted the improve/get-attribute-null-detection branch June 6, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request playwright Issue relating to Playwright compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants