rautomation 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/History.rdoc +6 -0
- data/VERSION +1 -1
- data/lib/rautomation/adapter/win_32/functions.rb +5 -1
- data/spec/text_field_spec.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95d5dfeb95290e7944534c9a7ff4e042ae9d9b25
|
4
|
+
data.tar.gz: 2f8c65032f68cd5fdb6d79a50d3887827597d7d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 389fd8e7b1bdd288e1d5514d384d1b957c26ab3b657bcffbc519ae7136e986faac6b88ad96949d1be1fea9c61cb1263555d3067a7eb29110d03c0b9c48866784
|
7
|
+
data.tar.gz: 2201aaf9897b898f2c5b474c85c1a759fd0e110808a62cc965e5029bce5707433cf9385592211d7394dc1c15a0f15f57013512ac36a0773c3b8fca8451edd1bf
|
data/Gemfile.lock
CHANGED
data/History.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.17.0
|
@@ -262,7 +262,11 @@ module RAutomation
|
|
262
262
|
|
263
263
|
def element_properties(type, hwnd, locators)
|
264
264
|
locators.inject({}) do |properties, locator|
|
265
|
-
|
265
|
+
if locator[0] == :hwnd
|
266
|
+
properties[locator[0]] = hwnd
|
267
|
+
elsif locator[0] != :index
|
268
|
+
properties[locator[0]] = self.send("#{type}_#{locator[0]}", hwnd)
|
269
|
+
end
|
266
270
|
properties
|
267
271
|
end
|
268
272
|
end
|
data/spec/text_field_spec.rb
CHANGED
@@ -47,7 +47,6 @@ describe RAutomation::TextField do
|
|
47
47
|
main_form.text_field(:class => "non-existent-field").should_not exist
|
48
48
|
end
|
49
49
|
|
50
|
-
|
51
50
|
it "#hwnd" do
|
52
51
|
field = main_form.text_field(:class => /Edit/i, :index => 1)
|
53
52
|
field.hwnd.should be_a(Fixnum)
|
@@ -56,4 +55,10 @@ describe RAutomation::TextField do
|
|
56
55
|
expect { main_form.text_field(:class => "non-existing-window").hwnd }.
|
57
56
|
to raise_exception(RAutomation::UnknownTextFieldException)
|
58
57
|
end
|
58
|
+
|
59
|
+
it "#hwnd locator" do
|
60
|
+
field = main_form.text_field(:class => /Edit/i, :index => 1)
|
61
|
+
field.hwnd.should be_a(Fixnum)
|
62
|
+
field2 = main_form.text_field(:hwnd => field.hwnd).should exist
|
63
|
+
end
|
59
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rautomation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarmo Pertman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|