Sha256: a63fa1ebda11cb39e42662321191a35154a88067987991a4441c823441076ef9
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
module FireWatir # # Description: # Base class containing items that are common between select list, text field, button, hidden, file field classes. # class InputElement < Element attr_accessor :element_name # # Description: # Locate the element on the page. Element can be a select list, text field, button, hidden, file field. # def locate case @how when :jssh_name @element_name = @what when :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: # Initializes the instance of element. # # Input: # - how - Attribute to identify the element. # - what - Value of that attribute. # def initialize(container, how, what) @how = how @what = what @container = container @element_name = "" #super(nil) end end # FireWatir end # InputElement
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
mk_firewatir-1.6.5 | lib/firewatir/elements/input_element.rb |
firewatir-1.6.5 | lib/firewatir/elements/input_element.rb |