Skip to content

Commit

Permalink
added index and scroll to click method
Browse files Browse the repository at this point in the history
  • Loading branch information
cheezy committed Jun 16, 2013
1 parent 633e32a commit 541507e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gametel/views/web_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ module Views
class WebView < View
WEB_VIEW_CLASS = 'android.webkit.WebView'

def click(how, what)
def click(how, what, index=0, scroll=true)
platform.chain_calls do |device|
device.web_view_by(how, what, :variable => '@@by@@', :target => :Brazenhead)
device.click_on_web_element('@@by@@', :target => :Robotium)
device.click_on_web_element('@@by@@', index, scroll, :target => :Robotium)
end
end

Expand Down

0 comments on commit 541507e

Please sign in to comment.