calabash-android 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -75,14 +75,14 @@ module Operations
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def query(uiquery, *args)
|
78
|
-
raise "Currently only queries are only supported for webviews" unless
|
78
|
+
raise "Currently only queries are only supported for webviews" unless uiquery.start_with? "webView"
|
79
79
|
|
80
|
-
|
81
|
-
if
|
80
|
+
uiquery.slice!(0, "webView".length)
|
81
|
+
if uiquery =~ /(css|xpath):\s*(.*)/
|
82
82
|
r = performAction("query", $1, $2)
|
83
83
|
JSON.parse(r["message"])
|
84
84
|
else
|
85
|
-
raise "Invalid query #{
|
85
|
+
raise "Invalid query #{uiquery}"
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calabash-android
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonas Maturana Larsen
|