Codeception / Codeception/module-webdriver

Bug: `MalformedLocatorException` thrown for `id`s that don't start with a character (HTML 5)

Aperta
#128 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
39
Fork
25
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

These both result in an `MalformedLocatorException`:
```php
$I->seeElement(['id' =>'123']);
$I->seeElement(['css' =>'div#123']);
```
The reason is probably that up to HTML 4, `id`s were required to start with a character (a-z). However, in HTML 5, `id`s can begin with virtually anything: https://html.spec.whatwg.org/multipage/dom.html#the-id-attribute

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.