uia 0.1.2.1 → 0.1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/uia/finder.rb CHANGED
@@ -39,6 +39,8 @@ module Uia
39
39
  find_child_by_name parent, name_or_value, scope
40
40
  when locator[:title]
41
41
  find_by_title locator[:title], parent.handle
42
+ when locator[:handle]
43
+ find_by_handle locator[:handle]
42
44
  else
43
45
  raise BadChildLocator, locator
44
46
  end
data/lib/uia/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Uia
2
- VERSION = '0.1.2.1'
2
+ VERSION = '0.1.2.2'
3
3
  end
@@ -112,6 +112,11 @@ describe Uia::Element do
112
112
  Then { element.find(title: /Group.*of radio/i) != nil }
113
113
  end
114
114
 
115
+ context 'handle' do
116
+ Given(:child_handle) { element.find(id: 'textField').handle }
117
+ Then { element.find(handle: child_handle).id == 'textField' }
118
+ end
119
+
115
120
  context 'invalid' do
116
121
  When(:bad_locator) { element.find(bad_locator: 123) }
117
122
  Then { bad_locator.should have_failed BadLocator, "{:bad_locator=>123} is not a valid locator" }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.1
4
+ version: 0.1.2.2
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: 2014-02-25 00:00:00.000000000 Z
12
+ date: 2014-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
@@ -250,7 +250,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
250
250
  version: '0'
251
251
  segments:
252
252
  - 0
253
- hash: -520580237
253
+ hash: 869511917
254
254
  required_rubygems_version: !ruby/object:Gem::Requirement
255
255
  none: false
256
256
  requirements:
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  version: '0'
260
260
  segments:
261
261
  - 0
262
- hash: -520580237
262
+ hash: 869511917
263
263
  requirements: []
264
264
  rubyforge_project:
265
265
  rubygems_version: 1.8.24