How can I scroll a CordovaWebView in Calabash?
I tried performAction("scroll_to", 'cordovaWebView','span.hmemenutxt')
But I either receive this output:
{
"bonusInformation" => [],
"message" => "",
"success" => true
}
or I get an error:
RuntimeError: Step unsuccessful:
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:220:in
block in perform_action
from C:/Ruby193/lib/ruby/1.9.1/timeout.rb:68:in timeout
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:209:in
perform_action
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:46:in
performAction
from (irb):46
I tried using performAction('execute_javascript','window.scroll(0,50)')
and
performAction('drag',150,150,150,200,90)
- but result is the same (CordovaWebView - is't scrolling).
All these performAction
s works in a standard WebView.
Anybody know how to scroll a CordovaWebView in Calabash-android??
I don't find solution this problem with Calabash , so I use adb shell to scrolling.