rautomation 0.6.1 → 0.6.2
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.
- data/History.rdoc +57 -38
- data/VERSION +1 -1
- data/lib/rautomation/adapter/win_ffi/table.rb +2 -2
- data/lib/rautomation/adapter/win_ffi/window.rb +8 -9
- data/lib/rautomation/adapter/win_ffi.rb +0 -1
- metadata +4 -4
data/History.rdoc
CHANGED
@@ -1,79 +1,98 @@
|
|
1
|
-
|
1
|
+
== Version 0.6.2 / 2011-07-07
|
2
2
|
|
3
3
|
=== WinFFI adapter
|
4
4
|
|
5
|
-
*
|
5
|
+
* loading lazily oleacc.dll
|
6
|
+
* loading lazily uia_dll.rb due to problems on certain Windows XP machines
|
6
7
|
|
7
|
-
|
8
|
+
|
9
|
+
== Version 0.6.1 / 2011-07-05
|
10
|
+
|
11
|
+
=== WinFFI adapter
|
12
|
+
|
13
|
+
* Fixed it for Ruby 1.9.2.
|
14
|
+
|
15
|
+
|
16
|
+
== Version 0.6.0 / 2011-07-03
|
8
17
|
|
9
18
|
=== WinFFI adapter
|
10
19
|
|
11
|
-
* Window#send_keys now accepts only String argument similar to AutoIt's Send function.
|
12
|
-
* added Table#strings, #select, #selected? methods.
|
13
|
-
* added Label element support with #value method.
|
14
|
-
* added #has_focus? and #set_focus methods to controls.
|
15
|
-
* added possibility to search controls by automation id as :id.
|
16
|
-
* added #enabled? and #disabled? methods for controls.
|
17
|
-
* added Window#control and #controls methods for accessing controls generally.
|
18
|
-
* added SelectList#option method.
|
19
|
-
* added ListBox element support with #count, #items, #exist?, #selected? and #select methods.
|
20
|
+
* Window#send_keys now accepts only String argument similar to AutoIt's Send function.
|
21
|
+
* added Table#strings, #select, #selected? methods.
|
22
|
+
* added Label element support with #value method.
|
23
|
+
* added #has_focus? and #set_focus methods to controls.
|
24
|
+
* added possibility to search controls by automation id as :id.
|
25
|
+
* added #enabled? and #disabled? methods for controls.
|
26
|
+
* added Window#control and #controls methods for accessing controls generally.
|
27
|
+
* added SelectList#option method.
|
28
|
+
* added ListBox element support with #count, #items, #exist?, #selected? and #select methods.
|
20
29
|
|
21
|
-
|
30
|
+
|
31
|
+
== Version 0.5.1 / 2011-01-30
|
22
32
|
|
23
33
|
=== All adapters
|
24
34
|
|
25
|
-
* added Window.windows, #windows, #buttons and #text_fields methods to retrieve collection of elements and use them with Enumerable/Array methods.
|
35
|
+
* added Window.windows, #windows, #buttons and #text_fields methods to retrieve collection of elements and use them with Enumerable/Array methods.
|
26
36
|
|
27
37
|
=== WinFFI adapter
|
28
38
|
|
29
|
-
* added Window#child method for searching child windows and popups
|
30
|
-
* added initial support for Radio, Checkbox, SelectList and Table
|
39
|
+
* added Window#child method for searching child windows and popups
|
40
|
+
* added initial support for Radio, Checkbox, SelectList and Table
|
31
41
|
|
32
42
|
=== AutoIt adapter
|
33
43
|
|
34
|
-
* allow to search windows by PID
|
44
|
+
* allow to search windows by PID
|
45
|
+
|
35
46
|
|
36
|
-
|
47
|
+
== Version 0.4.0 / 2010-12-23
|
37
48
|
|
38
|
-
* allow to search windows without text (like empty Notepad window for example).
|
39
|
-
* added possibility to use block for #click to specify successful clicking condition.
|
40
|
-
* renamed :ffi adapter to :win_ffi because FFI may be used on other platforms too.
|
49
|
+
* allow to search windows without text (like empty Notepad window for example).
|
50
|
+
* added possibility to use block for #click to specify successful clicking condition.
|
51
|
+
* renamed :ffi adapter to :win_ffi because FFI may be used on other platforms too.
|
41
52
|
|
42
|
-
=== Version 0.3.0 / 2010-12-18
|
43
53
|
|
44
|
-
|
54
|
+
== Version 0.3.0 / 2010-12-18
|
45
55
|
|
46
|
-
|
56
|
+
* added Ffi adapter specific method Window#child which searches for child windows and popups
|
47
57
|
|
48
|
-
* added yard options for documentation
|
49
58
|
|
50
|
-
|
59
|
+
== Version 0.2.1 / 2010-12-17
|
51
60
|
|
52
|
-
* added
|
61
|
+
* added yard options for documentation
|
53
62
|
|
54
|
-
=== Version 0.1.0 / 2010-12-14
|
55
63
|
|
56
|
-
|
57
|
-
* changes for AutoIt adapter:
|
58
|
-
- added 0-based :index locator for window locators to search for windows with the same criteria.
|
59
|
-
- renamed text_field and button locator :instance to :index instead.
|
60
|
-
- :class_name locator is not allowed anymore. Use :class and :index together instead.
|
61
|
-
- use :value for button locator instead of :text
|
64
|
+
== Version 0.2.0 / 2010-12-17
|
62
65
|
|
63
|
-
|
66
|
+
* added Window#pid method
|
67
|
+
|
68
|
+
|
69
|
+
== Version 0.1.0 / 2010-12-14
|
70
|
+
|
71
|
+
* added new default adapter for Windows: FFI
|
72
|
+
* changes for AutoIt adapter:
|
73
|
+
- added 0-based :index locator for window locators to search for windows with the same criteria.
|
74
|
+
- renamed text_field and button locator :instance to :index instead.
|
75
|
+
- :class_name locator is not allowed anymore. Use :class and :index together instead.
|
76
|
+
- use :value for button locator instead of :text
|
77
|
+
|
78
|
+
|
79
|
+
== Version 0.0.4 / 2010-10-27
|
64
80
|
|
65
81
|
* most Window, Button and TextField methods wait until the object exists.
|
66
82
|
Use RAutomation::Window.wait_timeout= to set timeout before failing. Default is 60 seconds.
|
67
83
|
|
68
|
-
|
84
|
+
|
85
|
+
== Version 0.0.3 / 2010-10-15
|
69
86
|
|
70
87
|
* RAutomation didn't load AutoIt correctly if it wasn't installed before
|
71
88
|
|
72
|
-
|
89
|
+
|
90
|
+
== Version 0.0.2 / 2010-10-14
|
73
91
|
|
74
92
|
* using :value locator for buttons instead of :text
|
75
93
|
* searching only visible windows with some text on them
|
76
94
|
|
77
|
-
|
95
|
+
|
96
|
+
== Version 0.0.1 / 2010-10-13
|
78
97
|
|
79
98
|
* Initial release
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
@@ -32,11 +32,11 @@ module RAutomation
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def select(row)
|
35
|
-
Functions.select_table_row(
|
35
|
+
Functions.select_table_row(Window.oleacc_module_handle, Functions.control_hwnd(@window.hwnd, @locators), row)
|
36
36
|
end
|
37
37
|
|
38
38
|
def selected?(row)
|
39
|
-
state = Functions.get_table_row_state(
|
39
|
+
state = Functions.get_table_row_state(Window.oleacc_module_handle, Functions.control_hwnd(@window.hwnd, @locators), row)
|
40
40
|
state & Constants::STATE_SYSTEM_SELECTED != 0
|
41
41
|
end
|
42
42
|
|
@@ -1,6 +1,8 @@
|
|
1
1
|
module RAutomation
|
2
2
|
module Adapter
|
3
3
|
module WinFfi
|
4
|
+
autoload :UiaDll, File.dirname(__FILE__) + "/ms_uia/uia_dll"
|
5
|
+
|
4
6
|
class Window
|
5
7
|
include WaitHelper
|
6
8
|
include Locators
|
@@ -9,18 +11,15 @@ module RAutomation
|
|
9
11
|
has_many :controls
|
10
12
|
|
11
13
|
class << self
|
12
|
-
def
|
13
|
-
|
14
|
-
|
14
|
+
def oleacc_module_handle
|
15
|
+
@oleacc_module_handle ||= begin
|
16
|
+
oleacc = Functions.load_library "oleacc.dll"
|
17
|
+
Functions.co_initialize nil
|
18
|
+
oleacc
|
19
|
+
end
|
15
20
|
end
|
16
21
|
end
|
17
22
|
|
18
|
-
initialize_com
|
19
|
-
|
20
|
-
def oleacc_module_handle
|
21
|
-
@@oleacc_module_handle
|
22
|
-
end
|
23
|
-
|
24
23
|
# Locators of the window.
|
25
24
|
attr_reader :locators
|
26
25
|
|
@@ -19,4 +19,3 @@ require File.dirname(__FILE__) + "/win_ffi/select_list"
|
|
19
19
|
require File.dirname(__FILE__) + "/win_ffi/table"
|
20
20
|
require File.dirname(__FILE__) + "/win_ffi/label"
|
21
21
|
require File.dirname(__FILE__) + "/win_ffi/list_box"
|
22
|
-
require File.dirname(__FILE__) + "/win_ffi/ms_uia/uia_dll.rb"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rautomation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jarmo Pertman
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-07-
|
18
|
+
date: 2011-07-07 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rspec
|