Skip to content

Commit 1e40f83

Browse files
committed
Update a method that returns a unique selector
1 parent 481bdb9 commit 1e40f83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

seleniumbase/fixtures/page_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,6 @@ def _save_data_as(data, destination_folder, file_name):
276276
def make_css_match_first_element_only(selector):
277277
# Only get the first match
278278
last_syllable = selector.split(" ")[-1]
279-
if ":" not in last_syllable and ":contains" not in selector:
279+
if ":first" not in last_syllable:
280280
selector += ":first"
281281
return selector

0 commit comments

Comments
 (0)