appium_lib 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/android_docs.md +114 -114
- data/docs/ios_docs.md +118 -117
- data/lib/appium_lib/common/helper.rb +3 -2
- data/lib/appium_lib/common/patch.rb +3 -1
- data/lib/appium_lib/common/version.rb +1 -1
- data/release_notes.md +6 -0
- metadata +1 -1
@@ -95,8 +95,9 @@ module Appium::Common
|
|
95
95
|
# @param index [Integer] the index
|
96
96
|
# @return [Element] the found element of type tag_name
|
97
97
|
def ele_index tag_name, index
|
98
|
-
# XPath index starts at 1.
|
99
|
-
|
98
|
+
# XPath index starts at 1.
|
99
|
+
raise "#{index} is not a valid xpath index. Must be >= 1" if index <= 0
|
100
|
+
find_element :xpath, "//#{tag_name}[#{index}]"
|
100
101
|
end
|
101
102
|
|
102
103
|
# Get all elements exactly matching tag name
|
@@ -100,7 +100,9 @@ def patch_webdriver_bridge
|
|
100
100
|
# change path from session/efac972c-941a-499c-803c-d7d008749/execute
|
101
101
|
# to /execute
|
102
102
|
# path may be nil, session, or not have anything after the session_id.
|
103
|
-
path_str =
|
103
|
+
path_str = path
|
104
|
+
path_str = '/' + path_str unless path_str.nil? ||
|
105
|
+
path_str.length <= 0 || path_str[0] == '/'
|
104
106
|
path_match = path.match /.*\h{8}-\h{4}-\h{4}-\h{4}-\h{12}/
|
105
107
|
path_str = path.sub(path_match[0], '') unless path_match.nil?
|
106
108
|
|
@@ -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.9.
|
4
|
+
VERSION = '0.9.1' unless defined? ::Appium::VERSION
|
5
5
|
DATE = '2013-09-19' unless defined? ::Appium::DATE
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
#### v0.9.0 2013-09-19
|
2
|
+
|
3
|
+
- [28f2161](https://github.com/appium/ruby_lib/commit/28f21615a435364246725e8f9adac62c0257dffa) Release 0.9.0
|
4
|
+
- [25837ae](https://github.com/appium/ruby_lib/commit/25837aeccf47623c1e4055d51238ac7e443a2d4f) iOS textfields use xpath now
|
5
|
+
|
6
|
+
|
1
7
|
#### v0.8.0 2013-09-19
|
2
8
|
|
3
9
|
- [205e04a](https://github.com/appium/ruby_lib/commit/205e04a562e6606b583449cc285e5f4cc5ce9387) Release 0.8.0
|