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 摘要。