Class: Furter::Accessors::Slider

Inherits:
View
  • Object
show all
Defined in:
lib/furter/accessors/slider.rb

Constant Summary

Constants included from Furter

TIMEOUT, VERSION

Instance Method Summary collapse

Methods inherited from View

#click, #enabled?, #initialize, #next_responders, #visible?

Methods included from Furter

#exists?, #has_text?, included, #wait_for, #wait_for_and_touch, #wait_for_text

Constructor Details

This class inherits a constructor from Furter::Accessors::View

Instance Method Details

#move(value) ⇒ Object



5
6
7
# File 'lib/furter/accessors/slider.rb', line 5

def move(value)
  frankly_map(selector, 'setValue:animated:', value, 'YES')
end

#progressObject



9
10
11
# File 'lib/furter/accessors/slider.rb', line 9

def progress
  frankly_map(selector, 'value')[0]
end

#view_classObject



13
14
15
16
# File 'lib/furter/accessors/slider.rb', line 13

def view_class
  return "view:'#{@locator[:type]}'" if @locator[:type]
  "view:'UISlider'"
end