Class: Mohawk::Adapters::UIA::Spinner

Inherits:
Control
  • Object
show all
Defined in:
lib/mohawk/adapters/uia/spinner.rb

Instance Method Summary collapse

Methods inherited from Control

#click, #disabled?, #element, #enabled?, #exist?, #focus, #handle, #initialize, #method_missing, valid_patterns, #view, #visible?

Methods included from Waiter

#wait_until

Constructor Details

This class inherits a constructor from Mohawk::Adapters::UIA::Control

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Mohawk::Adapters::UIA::Control

Instance Method Details

#decrementObject



19
20
21
# File 'lib/mohawk/adapters/uia/spinner.rb', line 19

def decrement
  self.value = value - spinner.small_change
end

#incrementObject



15
16
17
# File 'lib/mohawk/adapters/uia/spinner.rb', line 15

def increment
  self.value = value + spinner.small_change
end

#valueObject



11
12
13
# File 'lib/mohawk/adapters/uia/spinner.rb', line 11

def value
  spinner.value
end

#value=(value) ⇒ Object



7
8
9
# File 'lib/mohawk/adapters/uia/spinner.rb', line 7

def value=(value)
  spinner.value = value
end