Skip to content

Commit 0614fd0

Browse files
committed
Update the xpath-to-css converter
1 parent 3130a13 commit 0614fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

seleniumbase/fixtures/xpath_to_css.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _get_raw_css_from_xpath(xpath):
102102
elif match["mattr"] == "@class":
103103
attr = ".%s" % match["mvalue"].replace(" ", ".")
104104
elif match["mattr"] in ["text()", "."]:
105-
attr = ":contains(^%s$)" % match["mvalue"]
105+
attr = ":contains('%s')" % match["mvalue"]
106106
elif match["mattr"]:
107107
attr = '[%s="%s"]' % (
108108
match["mattr"].replace("@", ""),

0 commit comments

Comments
 (0)