Codeception / Codeception/module-webdriver
`click()` doesn't find `<summary>`, `<label>`, or elements inside `<a>`
- 主要语言
- PHP
- 星标
- 39
- 派生
- 25
- PR 合并指标
- 30 天内没有已合并 PR
描述
The HTML5 element `` is missing from the list of clickable elements at [`WebDriver::_findClickable()`](https://github.com/Codeception/module-webdriver/blob/master/src/Codeception/Module/WebDriver.php#L1047)
I tried to add it there just like the others: `".//summary[normalize-space(.)=$locator]",` - but this doesn't really fix it, since there are many elements allowed inside ``: https://html.spec.whatwg.org/#the-summary-element
I think this needs to be refactored, since (from looking at the code) elements inside `` are also not matched, e.g. `
So I guess the arguments that are thrown into `Locator::combine()` need to be replaced by functions to allow more complex matching logic.
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 src/Codeception/Module/WebDriver.php 中的 WebDriver::_findClickable() 开始,然后检查 Locator::combine() 的使用方式。复现对 、 以及嵌套在 内部的元素的点击;完成的标准是能够一致地定位有效的 HTML5 可点击目标,而不是只能匹配容器的直接文本。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- html, php
- 领域
- testing-qa
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100