We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54d7804 commit 82116afCopy full SHA for 82116af
seleniumbase/fixtures/page_utils.py
@@ -68,7 +68,7 @@ def is_name_selector(selector):
68
"""
69
A basic method to determine if a selector is a name selector.
70
71
- if selector.startswith("name="):
+ if selector.startswith("name=") or selector.startswith("&"):
72
return True
73
return False
74
@@ -110,7 +110,9 @@ def get_name_from_selector(selector):
110
A basic method to get the name from a name selector.
111
112
if selector.startswith("name="):
113
- return selector.split("name=")[1]
+ return selector[len("name="):]
114
+ if selector.startswith("&"):
115
+ return selector[len("&"):]
116
return selector
117
118
0 commit comments