appium_lib 0.9.0 → 0.9.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.
@@ -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. ruby_lib index starts at 0
99
- find_element :xpath, "//#{tag_name}[#{index + 1}]"
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.0' unless defined? ::Appium::VERSION
4
+ VERSION = '0.9.1' unless defined? ::Appium::VERSION
5
5
  DATE = '2013-09-19' unless defined? ::Appium::DATE
6
6
  end
@@ -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
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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com