calabash-android 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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");
|