Class: Sapphire::WebAbstractions::Image
- Defined in:
- lib/sapphire/WebAbstractions/Controls/Image.rb
Instance Attribute Summary
Attributes inherited from Control
#control, #found_by_type, #found_by_value
Instance Method Summary collapse
Methods inherited from Control
#Click, #Contain, #Equals, #Evaluate, #Find, #FindAll, #FindWithoutWait, #GetValue, #In, #MouseOver, #Substitute, #Text, #Visible, #initialize
Constructor Details
This class inherits a constructor from Sapphire::WebAbstractions::Control
Instance Method Details
#AltText(value, comparator) ⇒ Object
10 11 12 13 14 |
# File 'lib/sapphire/WebAbstractions/Controls/Image.rb', line 10 def AltText(value, comparator) image = self.Find evaluation = ControlEvaluation.new(image.attribute("alt"), value, self) EqualsComparison.new(evaluation) end |
#Source(value, comparator) ⇒ Object
4 5 6 7 8 |
# File 'lib/sapphire/WebAbstractions/Controls/Image.rb', line 4 def Source(value, comparator) image = self.Find evaluation = ControlEvaluation.new(image.attribute("src"), value, self) EqualsComparison.new(evaluation) end |