calabash-android 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
@@ -17,7 +17,7 @@ public class ScrollTo implements Action {
17
17
  @Override
18
18
  public Result execute(String... args) {
19
19
  //TODO: Should do horizontal scrolling if needed
20
- final String uiQuery = "webView " + args[0] + ":'"+ args[1] + "'";
20
+ final String uiQuery = "android.webkit.WebView " + args[0] + ":'"+ args[1] + "'";
21
21
 
22
22
  CalabashChromeClient calabashChromeClient = CalabashChromeClient.findAndPrepareWebViews().get(0);
23
23
  WebView webView = calabashChromeClient.getWebView();
@@ -19,7 +19,7 @@ public class SetText implements Action {
19
19
  @SuppressWarnings({ "rawtypes", "unchecked"})
20
20
  @Override
21
21
  public Result execute(final String... args) {
22
- final String uiQuery = "webView " + args[0] + ":'"+ args[1] + "'";
22
+ final String uiQuery = "android.webkit.WebView " + args[0] + ":'"+ args[1] + "'";
23
23
  List queryResult = new sh.calaba.instrumentationbackend.query.Query(uiQuery).executeQuery();
24
24
  if (queryResult.isEmpty()) {
25
25
  throw new RuntimeException("No element found");
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: