×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Ruby
Posted by: Solr Trovaprezzi
Added: Mar 9, 2017 11:19 AM
Views: 14
Tags: xpath
  1.     node = page.find '#current_node'
  2.     parent = node.find(:xpath, '..')