codeceptjs / codeceptjs/CodeceptJS

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

Offen
#2,469 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @Vorobeyko Auf GitHub ansehen
3.0 bug
Vorherrschende Sprache
JavaScript
Sterne
4.2k
Forks
757
Ø Merge
2 T. 9 Std.
Gemergte PRs (30 T.)
16

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.