Skip to content

input[type=checkbox].isValid() ignores (live) checked state #438

@Jaaap

Description

@Jaaap

The following snippet:

<input type="checkbox" name="x" required/>

with

HtmlCheckBoxInput cb = page.querySelector("input[type=checkbox][required]");
assertFalse(cb.isValid());
cb.click();
assertTrue(cb.isValid()); // fails because isValid() still reports false

fails, perhaps because HtmlCheckBoxInput.isValueMissingValidityState() uses getCheckedAttribute() instead of looking at the isChecked()?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions