Skip to content

Commit 7e3e269

Browse files
committed
Update click() in CDP Mode
1 parent 8358ef9 commit 7e3e269

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

seleniumbase/core/sb_cdp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,9 @@ def click(self, selector, timeout=None):
770770
if tag_name:
771771
tag_name = tag_name.lower().strip()
772772
if (
773-
tag_name in ["a", "button", "canvas", "div", "input", "li", "span"]
773+
tag_name in [
774+
"a", "button", "canvas", "div", "input", "li", "span", "label"
775+
]
774776
and "contains(" not in selector
775777
):
776778
try:

0 commit comments

Comments
 (0)