codeceptjs / codeceptjs/CodeceptJS

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

Aperta
#2,469 1 commento 0 reazioni 1 assegnatario Rivendicata da @Vorobeyko Vedi su GitHub
3.0 bug
Lingua principale
JavaScript
Stelle
4.2k
Fork
757
Merge medio
2g 9h
PR unite (30g)
16

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.