Skip to content

Commit 9d15b85

Browse files
committed
Update xpath-to-css converter
1 parent 22a5a69 commit 9d15b85

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
@@ -107,7 +107,7 @@ def _get_raw_css_from_xpath(xpath):
107107
match['mvalue'])
108108
elif match['contained']:
109109
if match['cattr'].startswith("@"):
110-
attr = "[%s*=%s]" % (match['cattr'].replace("@", ""),
110+
attr = '[%s*="%s"]' % (match['cattr'].replace("@", ""),
111111
match['cvalue'])
112112
elif match['cattr'] == "text()":
113113
attr = ":contains(%s)" % match['cvalue']

0 commit comments

Comments
 (0)