codeceptjs / codeceptjs/CodeceptJS

wait* steps not works with arguments {name | id }

未关闭
#2,469 1 条评论 0 个 reaction 已指派 1 人 已被 @Vorobeyko 认领 在 GitHub 查看
3.0 bug
主要语言
JavaScript
星标
4.2k
派生
757
平均合并
2 天 9 小时
30 天内合并 PR
16

描述

I try to call:
```js
I.waitForVisible({ name: 'field_name' })
```
but locator contains:
```js
Locator {
type: 'name',
output: null,
strict: true,
locator: { name: 'field_name' },
value: 'field_name'
}
```

And the `waitForVisible` step checks if this locator `isCss` will make `locator.simplify`, else waitByXpath, but `name` is not css, and CodeceptJS tries to search element by following xpath: ` 'field_name'`, but it is invalid xpath

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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