codeceptjs / codeceptjs/CodeceptJS
wait* steps not works with arguments {name | id }
Open
3.0
bug
- Dominant language
- JavaScript
- Stars
- 4.2k
- Forks
- 757
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 16
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.