Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

is: an ambiguous selector reports selector_not_found; RN text yields duplicate-label nodes

已关闭
#2,870 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
ios, react-native, typescript

调研方向

Start in packages/selectors/src/internal/resolution-policy.ts around lines 63-71, then reproduce the issue on the fixture app's Catalog tab using the iOS 26.2 simulator. Trace how readUnique maps non-unique matches to selector_not_found. Done means is reports a typed ambiguity outcome with the match count and the duplicate React Native text-node presentation behavior has a documented decision.

由索引模型根据 Issue 内容生成。

描述

Problem

is visible 'label="Catalog scroll: top"' fails on every run on the fixture Catalog screen (iOS Simulator, AX bridge), even on a fresh capture. get text with the same selector finds the element, and id="catalog-scroll-state" passes is visible.

Mechanism (from a live investigation on 2026-09-24, found alongside #2866/#2869):

  • React Native exposes that text as a paragraph node plus a child node that carries the same label, so the label selector matches 2 nodes.
  • is resolves through readUnique (packages/selectors/src/internal/resolution-policy.ts:68-71) and refuses a non-unique match. get text resolves through readText (:63-66), which picks one match, so it succeeds.
  • is then reports the ambiguity as selector_not_found, which to an agent means the element does not exist.

Required behavior

  • An ambiguous match on is returns a typed ambiguity outcome that names the match count, not selector_not_found. Key it on a typed reason, not on message text.
  • Decide whether the duplicate RN text node (parent paragraph plus child with an identical label) should be one node in presentation. That would make label selectors on RN text unique, as they read to a user.

Evidence to reproduce

Open the fixture app's Catalog tab on an iOS 26.2 simulator. is visible 'label="Catalog scroll: top"' fails every time; get text with the same selector succeeds.

主要语言
TypeScript
星标
4.9k
派生
328
平均合并
12 小时 18 分钟
30 天内合并 PR
561

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstack/agent-device 的其他 Issue

查看 callstack/agent-device 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。