Module: Gametel::Platforms::Progress

Included in:
BrazenheadPlatform
Defined in:
lib/gametel/platforms/brazenhead/progress.rb

Constant Summary collapse

PROGRESS_BAR_CLASS =
'android.widget.ProgressBar'

Instance Method Summary collapse

Instance Method Details

#get_progress(locator) ⇒ Object



9
10
11
12
# File 'lib/gametel/platforms/brazenhead/progress.rb', line 9

def get_progress(locator)
  return get_progress_by_id locator[:id] if locator[:id]
  return get_progress_by_index locator[:index] if locator[:index]
end

#get_progress_max(locator) ⇒ Object



29
30
31
32
# File 'lib/gametel/platforms/brazenhead/progress.rb', line 29

def get_progress_max(locator)
  return get_progress_max_by_id locator[:id] if locator[:id]
  return get_progress_max_by_index locator[:index] if locator[:index]
end

#get_secondary_progress(locator) ⇒ Object



19
20
21
22
# File 'lib/gametel/platforms/brazenhead/progress.rb', line 19

def get_secondary_progress(locator)
  return get_secondary_progress_by_id locator[:id] if locator[:id]
  return get_secondary_progress_by_index locator[:index] if locator[:index]
end

#set_progress(locator, value) ⇒ Object



14
15
16
17
# File 'lib/gametel/platforms/brazenhead/progress.rb', line 14

def set_progress(locator, value)
  set_progress_by_id locator[:id], value if locator[:id]
  set_progress_by_index locator[:index], value if locator[:index]
end

#set_secondary_progress(locator, value) ⇒ Object



24
25
26
27
# File 'lib/gametel/platforms/brazenhead/progress.rb', line 24

def set_secondary_progress(locator, value)
  set_secondary_progress_by_id locator[:id], value if locator[:id]
  set_secondary_progress_by_index locator[:index], value if locator[:index]
end