Class: Sapphire::WebAbstractions::Date

Inherits:
Control show all
Defined in:
lib/sapphire/WebAbstractions/Controls/Date.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, #Visible, #initialize

Constructor Details

This class inherits a constructor from Sapphire::WebAbstractions::Control

Instance Method Details

#TextObject



5
6
7
8
# File 'lib/sapphire/WebAbstractions/Controls/Date.rb', line 5

def Text
  control = self.Find
  return DateTime.strptime(control.text, "%m/%d/%Y %H:%M:%S %p").to_date
end