Codeception / Codeception/module-webdriver

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

Open
#128 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
39
Forks
25
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.