Skip to content

Another update to the xpath-to-css converter

Compare
Choose a tag to compare
@mdmintz mdmintz released this 09 Sep 05:28
· 5052 commits to master since this release
0bf5179

Another update to the xpath-to-css converter

  • Handle the case of // in the middle of an xpath selector

Example:

self.convert_xpath_to_css("//section//p/p//div")
'section p > p div'

See the xpath cheatsheet for more details: https://devhints.io/xpath