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.
- data/lib/calabash-android/lib/TestServer.apk +0 -0
- data/lib/calabash-android/version.rb +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/webview/ScrollTo.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/webview/SetText.java +1 -1
- metadata +1 -1
Binary file
|
@@ -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 = "
|
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 = "
|
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");
|