appium_lib 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/android_docs.md +98 -98
- data/docs/ios_docs.md +99 -99
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/ios/helper.rb +32 -0
- data/release_notes.md +6 -0
- metadata +3 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
module Appium
|
3
3
|
# Version and Date are defined on the 'Appium' module, not 'Appium::Common'
|
4
|
-
VERSION = '0.5.
|
5
|
-
DATE = '2013-
|
4
|
+
VERSION = '0.5.7' unless defined? ::Appium::VERSION
|
5
|
+
DATE = '2013-06-03' unless defined? ::Appium::DATE
|
6
6
|
end
|
@@ -51,6 +51,38 @@ module Appium::Ios
|
|
51
51
|
'•' * length
|
52
52
|
end
|
53
53
|
|
54
|
+
# Returns a string of class counts.
|
55
|
+
def get_page_class
|
56
|
+
r = []
|
57
|
+
run_internal = lambda do |node|
|
58
|
+
if node.kind_of? Array
|
59
|
+
node.each { |node| run_internal.call node }
|
60
|
+
return
|
61
|
+
end
|
62
|
+
|
63
|
+
keys = node.keys
|
64
|
+
return if keys.empty?
|
65
|
+
r.push node['type'] if keys.include?('type')
|
66
|
+
|
67
|
+
run_internal.call node['children'] if keys.include?('children')
|
68
|
+
end
|
69
|
+
json = get_source
|
70
|
+
run_internal.call json['children']
|
71
|
+
|
72
|
+
res = []
|
73
|
+
r = r.sort
|
74
|
+
r.uniq.each do |ele|
|
75
|
+
res.push "#{r.count(ele)}x #{ele}\n"
|
76
|
+
end
|
77
|
+
count_sort = ->(one,two) { two.match(/(\d+)x/)[1].to_i <=> one.match(/(\d+)x/)[1].to_i }
|
78
|
+
res.sort(&count_sort).join ''
|
79
|
+
end
|
80
|
+
|
81
|
+
def page_class
|
82
|
+
puts get_page_class
|
83
|
+
nil
|
84
|
+
end
|
85
|
+
|
54
86
|
# Returns a string of interesting elements. iOS only.
|
55
87
|
#
|
56
88
|
# @param element [Object] the element to search. omit to search everything
|
data/release_notes.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
#### v0.5.6 2013-05-31
|
2
|
+
|
3
|
+
- [7c3335c](https://github.com/appium/ruby_lib/commit/7c3335c82e8b96e4a4cf74ae20faf98906b63770) Release 0.5.6
|
4
|
+
- [b231d8f](https://github.com/appium/ruby_lib/commit/b231d8fbcdd35cc7a027e02a7733d10a616d2f7b) Fix finds
|
5
|
+
|
6
|
+
|
1
7
|
#### v0.5.5 2013-05-31
|
2
8
|
|
3
9
|
- [e061482](https://github.com/appium/ruby_lib/commit/e061482a0f712914c5fb21da92da357b79e07b87) Release 0.5.5
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
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-
|
12
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: selenium-webdriver
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
segments:
|
152
152
|
- 0
|
153
|
-
hash: -
|
153
|
+
hash: -3775133990771616919
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
156
|
rubygems_version: 1.8.25
|