Skip to content

docs: expose toHaveAttribute presence assertion to Java - #42710

Open
JAYA DILEEP (seethinajayadileep) wants to merge 1 commit into
microsoft:mainfrom
seethinajayadileep:fix/toHaveAttribute-presence-java
Open

JAYA DILEEP (seethinajayadileep) wants to merge 1 commit into
microsoft:mainfrom
seethinajayadileep:fix/toHaveAttribute-presence-java

Conversation

@seethinajayadileep

Copy link
Copy Markdown

Maintainer asked on microsoft/playwright-java#1975 to enable Java on LocatorAssertions.toHaveAttribute#2 upstream so the generated Java API can include the presence overload.

Change (docs only):

  • langs: js, java with alias-java: hasAttribute
  • Java/C#/Python timeout option macro (mirrors first overload)
  • Short Java usage example next to the existing JS snippet

Refs: microsoft/playwright-java#1844, microsoft/playwright-java#1975

Include java in LocatorAssertions.toHaveAttribute#2 langs filter
with alias hasAttribute so playwright-java can generate the API.

Refs: microsoft/playwright-java#1844
Requested on microsoft/playwright-java#1975

Signed-off-by: JAYA DILEEP <seethinajayadileep@hotmail.com>
## async method: LocatorAssertions.toHaveAttribute#2
* since: v1.39
* langs: js
* langs: js, java

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's expose it in other languages too

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