gems/ruby/2.2.0/gems/watir-webdriver-0.7.0/lib/watir-webdriver/elements/element.rb
#
# Returns parent element of current element.
#
Returns parent element of current element.
Returns parent element of current element .
def parent
      assert_exists
      e = element_call { execute_atom :getParentElement, @element }
      if e.kind_of?(Selenium::WebDriver::Element)
        Watir.element_class_for(e.tag_name.downcase).new(@parent, :element => e)
      end
    end
def parent assert_exists e = element_call { execute_atom :getParentElement , @element } if e . kind_of? ( Selenium :: WebDriver :: Element ) Watir . element_class_for ( e . tag_name . downcase ) . new ( @parent , :element => e ) end end
Returns parent element of current element.
Returns parent element of current element .