I can bind checkbox (needs refactoring)

This commit is contained in:
2025-11-02 10:11:15 +01:00
parent aaba6a5468
commit c3d6958c1a
4 changed files with 217 additions and 17 deletions

View File

@@ -1158,6 +1158,8 @@ class MyTestClient:
def _testable_element_factory(self, elt):
if elt.name == "input":
if elt.get("type") == "checkbox":
return TestableCheckbox(self, elt)
return TestableInput(self, elt)
else:
return TestableElement(self, elt, elt.name)