Skip to content

feat(locator): add locator aliases and exists API#103

Open
Sourav-co wants to merge 1 commit intomobile-next:mainfrom
Sourav-co:feat/locator-visibility-support
Open

feat(locator): add locator aliases and exists API#103
Sourav-co wants to merge 1 commit intomobile-next:mainfrom
Sourav-co:feat/locator-visibility-support

Conversation

@Sourav-co
Copy link
Copy Markdown

This PR adds two small but useful Locator APIs to improve developer experience

Added APIs
locator.click()

Playwright-style alias for:

locator.tap()

Example:

await locator.click()
locator.exists()

Notes:
No breaking changes
Existing APIs remain untouched
click() internally uses the existing tap() implementation
exists() uses the existing locator resolution flow

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.

1 participant