web-infra-dev / web-infra-dev/midscene

[Feature]: support XPath positioning for Android

Open
#1,095 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
14.9k
Forks
1.2k
Avg merge
1d 14h
Merged PRs (30d)
96

Description

English Translation

I would like to know roughly when Android will support XPath-based locating. From the current code, this part does not seem to be implemented yet. AI can cover many scenarios, but for complex pages some scenarios still need explicit locators such as XPath or accessibility id.

Proposed API: allow users to locate elements by XPath or accessibility id.


What problem does this feature solve?

大概什么安卓能支持xpath定位,我看下现在代码 这部分还没具体实现,因为对于复杂页面通过AI还是还能满足全部场景,有些场景还是需要自己通过xpath / accessibility id等来定位

What does the proposed API look like?

能够支持自己通过xpath / accessibility id等来定位

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by tracing the existing Android locating entry points and current locator APIs, then compare how other platforms expose element lookup. Done would mean a defined and tested Android API for XPath and accessibility-id locating.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile-dev, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.