class Capybara::RackTest::Node

def select_node

a reference to the select node if this is an option node
def select_node
  find_xpath('./ancestor::select[1]').first
end