Merge pull request #510 from seleniumbase/fix-xpath-to-css-converter
Fix the xpath-to-css converter
This commit is contained in:
commit
5c7f26befa
|
@ -103,8 +103,8 @@ def _get_raw_css_from_xpath(xpath):
|
|||
elif match['mattr']:
|
||||
if match["mvalue"].find(" ") != -1:
|
||||
match["mvalue"] = "\"%s\"" % match["mvalue"]
|
||||
attr = "[%s=%s]" % (match['mattr'].replace("@", ""),
|
||||
match['mvalue'])
|
||||
attr = '[%s="%s"]' % (match['mattr'].replace("@", ""),
|
||||
match['mvalue'])
|
||||
elif match['contained']:
|
||||
if match['cattr'].startswith("@"):
|
||||
attr = '[%s*="%s"]' % (match['cattr'].replace("@", ""),
|
||||
|
|
Loading…
Reference in New Issue