acouchi 0.0.13 → 0.0.14
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/acouchi/solo.rb +10 -0
- data/lib/acouchi/version.rb +1 -1
- data/src/com/acouchi/MethodExecutor.java +3 -0
- metadata +2 -2
data/lib/acouchi/solo.rb
CHANGED
@@ -75,6 +75,16 @@ module Acouchi
|
|
75
75
|
])
|
76
76
|
end
|
77
77
|
|
78
|
+
def click_menu_item text, options={}
|
79
|
+
options = {
|
80
|
+
:sub_menu => true
|
81
|
+
}.merge(options)
|
82
|
+
call_method("clickOnMenuItem", [
|
83
|
+
text,
|
84
|
+
options[:sub_menu]
|
85
|
+
])
|
86
|
+
end
|
87
|
+
|
78
88
|
def views
|
79
89
|
call_method("getViews")
|
80
90
|
end
|
data/lib/acouchi/version.rb
CHANGED
@@ -75,6 +75,9 @@ public class MethodExecutor
|
|
75
75
|
if (methodName.equals("clickOnImage"))
|
76
76
|
solo.clickOnImage(Integer.parseInt(parameters[0]));
|
77
77
|
|
78
|
+
if (methodName.equals("clickOnMenuItem"))
|
79
|
+
solo.clickOnMenuItem(parameters[0], Boolean.parseBoolean(parameters[1]));
|
80
|
+
|
78
81
|
if (methodName.equals("scrollUp"))
|
79
82
|
result = solo.scrollUp();
|
80
83
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acouchi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|