vendor/gems/gems/firewatir-1.2.1/htmlelements.rb
#
# Description:
#   Locate the element on the page. Element can be a select list, text field, button, hidden, file field.
#

Locate the element on the page. Element can be a select list, text field, button, hidden, file field.
Locate the element on the page . Element can be a select list text field button hidden file field .
def locate
        if @how == :jssh_name
            @element_name = @what
        elsif @how == :xpath
            @element_name = element_by_xpath(@container, @what)
        else
            if(self.class::INPUT_TYPES.include?("select-one"))
                @element_name = locate_tagged_element("select", @how, @what, self.class::INPUT_TYPES)
            else    
                @element_name = locate_tagged_element("input", @how, @what, self.class::INPUT_TYPES)
            end    
        end
        @o = self
    end
def locate if @how == :jssh_name @element_name = @what elsif @how == :xpath @element_name = element_by_xpath ( @container , @what ) else if ( self . class :: INPUT_TYPES . include? ( "select-one" ) ) @element_name = locate_tagged_element ( "select" , @how , @what , self . class :: INPUT_TYPES ) else @element_name = locate_tagged_element ( "input" , @how , @what , self . class :: INPUT_TYPES ) end end @o = self end
Description:
Locate the element on the page.
Description : Locate the element on the page .