Module: Frank::Cucumber::ScrollHelper

Included in:
FrankHelper
Defined in:
lib/frank-cucumber/scroll_helper.rb

Instance Method Summary collapse

Instance Method Details

#scroll_table_view(selector, row, section = 0) ⇒ Object



18
19
20
# File 'lib/frank-cucumber/scroll_helper.rb', line 18

def scroll_table_view( selector, row, section = 0)
  frankly_map(selector, "FEX_scrollToRow:inSection:", row.to_i, section.to_i)
end

#scroll_view_to_bottom(selector) ⇒ Object



10
11
12
# File 'lib/frank-cucumber/scroll_helper.rb', line 10

def scroll_view_to_bottom( selector )
  frankly_map( selector, "FEX_scrollToBottom" )
end

#scroll_view_to_position(selector, x, y) ⇒ Object



14
15
16
# File 'lib/frank-cucumber/scroll_helper.rb', line 14

def scroll_view_to_position( selector, x, y )
  frankly_map( selector, "FEX_setContentOffsetX:y:", x.to_i, y.to_i)
end

#scroll_view_to_top(selector) ⇒ Object



6
7
8
# File 'lib/frank-cucumber/scroll_helper.rb', line 6

def scroll_view_to_top( selector )
  frankly_map( selector, "FEX_scrollToTop" )
end