Method: BeHtmlWith#build_deep_xpath
- Defined in:
- lib/assert2/xhtml.rb
#build_deep_xpath(element) ⇒ Object
103 104 105 106 107 |
# File 'lib/assert2/xhtml.rb', line 103 def build_deep_xpath(element) path = build_xpath(element) path.index('not(') == 0 and return '/*[ ' + path + ' ]' return '//' + path end |