Module: Bewildr::ControlPatterns::TextPattern
- Defined in:
- lib/bewildr/control_patterns/text_pattern.rb
Instance Method Summary collapse
-
#get_text ⇒ Object
Returns all the element’s text.
-
#select_all ⇒ Object
Selects all of the text in the element.
Instance Method Details
#get_text ⇒ Object
Returns all the element’s text
12 13 14 |
# File 'lib/bewildr/control_patterns/text_pattern.rb', line 12 def get_text @automation_element.get_current_pattern(System::Windows::Automation::TextPattern.pattern).document_range.get_text(-1).to_s end |
#select_all ⇒ Object
Selects all of the text in the element
7 8 9 |
# File 'lib/bewildr/control_patterns/text_pattern.rb', line 7 def select_all @automation_element.get_current_pattern(System::Windows::Automation::TextPattern.pattern).document_range.select end |