rautomation 0.4.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +16 -1
- data/LICENSE +1 -1
- data/README.rdoc +25 -7
- data/Rakefile +4 -0
- data/VERSION +1 -1
- data/ext/IAccessibleDLL/IAccessibleDLL.sln +20 -0
- data/ext/IAccessibleDLL/IAccessibleDLL.suo +0 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp +36 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.vcxproj +100 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.vcxproj.filters +39 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.vcxproj.user +3 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/ReadMe.txt +48 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/dllmain.cpp +19 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/stdafx.cpp +8 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/stdafx.h +16 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/targetver.h +8 -0
- data/ext/IAccessibleDLL/Release/IAccessibleDLL.dll +0 -0
- data/ext/IAccessibleDLL/Release/IAccessibleDLL.exp +0 -0
- data/ext/IAccessibleDLL/Release/IAccessibleDLL.lib +0 -0
- data/ext/WindowsForms/bin/WindowsForms.exe +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms.sln +20 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms.suo +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/AboutBox.Designer.cs +80 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/AboutBox.cs +103 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/AboutBox.resx +120 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/DataEntryForm.Designer.cs +167 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/DataEntryForm.cs +45 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/DataEntryForm.resx +120 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/MainFormWindow.Designer.cs +278 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/MainFormWindow.cs +78 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/MainFormWindow.resx +120 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/PersonForm.Designer.cs +119 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/PersonForm.cs +34 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/PersonForm.resx +120 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Program.cs +21 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/AssemblyInfo.cs +36 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Resources.Designer.cs +71 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Resources.resx +117 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Settings.Designer.cs +30 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Settings.settings +7 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/SimpleElementsForm.Designer.cs +93 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/SimpleElementsForm.cs +19 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/SimpleElementsForm.resx +120 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/WindowsForms.csproj +123 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Debug/WindowsForms.exe +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Debug/WindowsForms.pdb +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Debug/WindowsForms.vshost.exe +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Debug/WindowsForms.vshost.exe.manifest +11 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/GenerateResource.read.1.tlog +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/GenerateResource.write.1.tlog +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/ResolveAssemblyReference.cache +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.AboutBox.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.DataEntryForm.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.MainFormWindow.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.PersonForm.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.Properties.Resources.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.SimpleElementsForm.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.csproj.FileListAbsolute.txt +25 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.exe +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.pdb +0 -0
- data/lib/{RAutomation.rb → rautomation.rb} +3 -1
- data/lib/rautomation/adapter/autoit/button.rb +7 -4
- data/lib/rautomation/adapter/autoit/locators.rb +4 -2
- data/lib/rautomation/adapter/autoit/text_field.rb +8 -5
- data/lib/rautomation/adapter/autoit/window.rb +23 -7
- data/lib/rautomation/adapter/win_ffi.rb +9 -3
- data/lib/rautomation/adapter/win_ffi/button.rb +3 -34
- data/lib/rautomation/adapter/win_ffi/button_helper.rb +24 -0
- data/lib/rautomation/adapter/win_ffi/checkbox.rb +12 -0
- data/lib/rautomation/adapter/win_ffi/constants.rb +21 -0
- data/lib/rautomation/adapter/win_ffi/control.rb +46 -0
- data/lib/rautomation/adapter/win_ffi/functions.rb +52 -1
- data/lib/rautomation/adapter/win_ffi/locators.rb +2 -1
- data/lib/rautomation/adapter/win_ffi/radio.rb +12 -0
- data/lib/rautomation/adapter/win_ffi/select_list.rb +64 -0
- data/lib/rautomation/adapter/win_ffi/table.rb +18 -0
- data/lib/rautomation/adapter/win_ffi/text_field.rb +4 -20
- data/lib/rautomation/adapter/win_ffi/window.rb +48 -10
- data/lib/rautomation/element_collections.rb +44 -0
- data/lib/rautomation/window.rb +29 -5
- data/spec/adapter/win_ffi/checkbox_spec.rb +29 -0
- data/spec/adapter/win_ffi/radio_spec.rb +21 -0
- data/spec/adapter/win_ffi/select_list_spec.rb +41 -0
- data/spec/adapter/win_ffi/table_spec.rb +20 -0
- data/spec/adapter/win_ffi/window_spec.rb +6 -12
- data/spec/button_spec.rb +28 -20
- data/spec/buttons_spec.rb +21 -0
- data/spec/spec_helper.rb +46 -37
- data/spec/text_field_spec.rb +11 -11
- data/spec/text_fields_spec.rb +22 -0
- data/spec/window_spec.rb +11 -19
- data/spec/windows_spec.rb +55 -0
- metadata +84 -9
- data/.gitignore +0 -25
- data/rautomation.gemspec +0 -90
- data/spec/test.html +0 -15
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe RAutomation::TextFields do
|
4
|
+
|
5
|
+
it "Window#text_fields returns all text fields" do
|
6
|
+
SpecHelper::navigate_to_simple_elements
|
7
|
+
|
8
|
+
text_fields = RAutomation::Window.new(:title => "SimpleElementsForm").text_fields
|
9
|
+
text_fields.size.should == 2
|
10
|
+
text_fields.find_all {|t| t.value == "Enter some text"}.size.should == 1
|
11
|
+
end
|
12
|
+
|
13
|
+
it "Window#text_fields with parameters returns all matching text fields" do
|
14
|
+
SpecHelper::navigate_to_simple_elements
|
15
|
+
|
16
|
+
window = RAutomation::Window.new(:title => "SimpleElementsForm")
|
17
|
+
text_fields = window.text_fields(:index => 0)
|
18
|
+
text_fields.size.should == 2
|
19
|
+
text_fields.first.value.should == "Enter some text"
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
data/spec/window_spec.rb
CHANGED
@@ -1,20 +1,12 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe RAutomation::Window do
|
4
|
-
before :all do
|
5
|
-
window = RAutomation::Window.new(:title => SpecHelper::DATA[:window1_title])
|
6
|
-
RAutomation::WaitHelper.wait_until {window.present?}
|
7
|
-
|
8
|
-
window = RAutomation::Window.new(:title => SpecHelper::DATA[:window2_title])
|
9
|
-
RAutomation::WaitHelper.wait_until {window.present?}
|
10
|
-
end
|
11
|
-
|
12
4
|
it "RAutomation::Window.adapter" do
|
13
5
|
RAutomation::Window.new(:title => "random").adapter.should == (ENV["RAUTOMATION_ADAPTER"] && ENV["RAUTOMATION_ADAPTER"].to_sym || RAutomation::Adapter::Helper.default_adapter)
|
14
6
|
end
|
15
7
|
|
16
8
|
it "Window#new by full title" do
|
17
|
-
RAutomation::Window.new(:title => SpecHelper::DATA[:
|
9
|
+
RAutomation::Window.new(:title => SpecHelper::DATA[:window1_full_title]).should exist
|
18
10
|
end
|
19
11
|
|
20
12
|
it "Window#new by regexp title" do
|
@@ -22,10 +14,10 @@ describe RAutomation::Window do
|
|
22
14
|
end
|
23
15
|
|
24
16
|
it "Window#new by hwnd" do
|
25
|
-
hwnd = RAutomation::Window.new(:title => SpecHelper::DATA[:
|
17
|
+
hwnd = RAutomation::Window.new(:title => SpecHelper::DATA[:window1_full_title]).hwnd
|
26
18
|
window = RAutomation::Window.new(:hwnd => hwnd)
|
27
19
|
window.should exist
|
28
|
-
window.title.should == SpecHelper::DATA[:
|
20
|
+
window.title.should == SpecHelper::DATA[:window1_full_title]
|
29
21
|
end
|
30
22
|
|
31
23
|
it "#exists?" do
|
@@ -53,7 +45,7 @@ describe RAutomation::Window do
|
|
53
45
|
end
|
54
46
|
|
55
47
|
it "#title" do
|
56
|
-
RAutomation::Window.new(:title => SpecHelper::DATA[:
|
48
|
+
RAutomation::Window.new(:title => SpecHelper::DATA[:window1_title]).title.should == SpecHelper::DATA[:window1_full_title]
|
57
49
|
RAutomation::Window.wait_timeout = 0.1
|
58
50
|
expect {RAutomation::Window.new(:title => "non-existing-window").title}.
|
59
51
|
to raise_exception(RAutomation::UnknownWindowException)
|
@@ -69,7 +61,7 @@ describe RAutomation::Window do
|
|
69
61
|
end
|
70
62
|
|
71
63
|
it "#text" do
|
72
|
-
RAutomation::Window.new(:title => SpecHelper::DATA[:
|
64
|
+
RAutomation::Window.new(:title => SpecHelper::DATA[:window1_title]).text.should include(SpecHelper::DATA[:window1_text])
|
73
65
|
RAutomation::Window.wait_timeout = 0.1
|
74
66
|
expect {RAutomation::Window.new(:title => "non-existing-window").text}.
|
75
67
|
to raise_exception(RAutomation::UnknownWindowException)
|
@@ -103,15 +95,15 @@ describe RAutomation::Window do
|
|
103
95
|
end
|
104
96
|
|
105
97
|
it "#method_missing" do
|
106
|
-
win = RAutomation::Window.new(:title => SpecHelper::DATA[:
|
107
|
-
SpecHelper::DATA[:title_proc].call(win).should == SpecHelper::DATA[:
|
98
|
+
win = RAutomation::Window.new(:title => SpecHelper::DATA[:window1_title])
|
99
|
+
SpecHelper::DATA[:title_proc].call(win).should == SpecHelper::DATA[:window1_full_title]
|
108
100
|
end
|
109
101
|
|
110
102
|
it "#send_keys"do
|
111
|
-
window = RAutomation::Window.new(:title => SpecHelper::DATA[:
|
112
|
-
window.minimize #
|
113
|
-
window.send_keys(SpecHelper::DATA[:
|
114
|
-
|
103
|
+
window = RAutomation::Window.new(:title => SpecHelper::DATA[:window1_title])
|
104
|
+
window.minimize # send_keys should work even if window is minimized
|
105
|
+
window.send_keys(SpecHelper::DATA[:window1_send_keys])
|
106
|
+
SpecHelper::DATA[:proc_after_send_keys].call
|
115
107
|
|
116
108
|
RAutomation::Window.wait_timeout = 0.1
|
117
109
|
expect {RAutomation::Window.new(:title => "non-existing-window").send_keys("123")}.
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe RAutomation::Windows do
|
4
|
+
subject {self}
|
5
|
+
|
6
|
+
before :each do
|
7
|
+
@pid2 = IO.popen(SpecHelper::DATA[:window2]).pid
|
8
|
+
window = RAutomation::Window.new(:pid => @pid2)
|
9
|
+
RAutomation::WaitHelper.wait_until {window.present?}
|
10
|
+
end
|
11
|
+
|
12
|
+
it "Window.windows returns all windows" do
|
13
|
+
windows = RAutomation::Window.windows
|
14
|
+
windows.should be_a(RAutomation::Windows)
|
15
|
+
windows.size.should be >= 2
|
16
|
+
expected_windows = [
|
17
|
+
RAutomation::Window.new(:pid => @pid1),
|
18
|
+
RAutomation::Window.new(:pid => @pid2)
|
19
|
+
]
|
20
|
+
should have_all_windows(expected_windows, windows)
|
21
|
+
end
|
22
|
+
|
23
|
+
it "Windows#windows returns all similar windows" do
|
24
|
+
windows = RAutomation::Window.new(:title => SpecHelper::DATA[:window1_title]).windows
|
25
|
+
windows.should be_a(RAutomation::Windows)
|
26
|
+
windows.size.should == 1
|
27
|
+
expected_windows = [
|
28
|
+
RAutomation::Window.new(:pid => @pid1),
|
29
|
+
]
|
30
|
+
should have_all_windows(expected_windows, windows)
|
31
|
+
end
|
32
|
+
|
33
|
+
it "Windows#windows with parameters returns all matching windows" do
|
34
|
+
windows = RAutomation::Window.new(:title => SpecHelper::DATA[:window1_title]).windows(:title => SpecHelper::DATA[:window2_title])
|
35
|
+
windows.should be_a(RAutomation::Windows)
|
36
|
+
|
37
|
+
windows.size.should == 1
|
38
|
+
expected_windows = [
|
39
|
+
RAutomation::Window.new(:pid => @pid2),
|
40
|
+
]
|
41
|
+
should have_all_windows(expected_windows, windows)
|
42
|
+
end
|
43
|
+
|
44
|
+
after :each do
|
45
|
+
Process.kill(9, @pid2) rescue nil
|
46
|
+
end
|
47
|
+
|
48
|
+
def has_all_windows?(expected_windows, windows)
|
49
|
+
expected_windows.all? do |expected_window|
|
50
|
+
matched_windows = windows.find_all {|win| win.hwnd == expected_window.hwnd}
|
51
|
+
matched_windows.size == 1
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
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: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 5
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
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:
|
18
|
+
date: 2011-01-30 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -52,7 +52,6 @@ extra_rdoc_files:
|
|
52
52
|
- README.rdoc
|
53
53
|
files:
|
54
54
|
- .document
|
55
|
-
- .gitignore
|
56
55
|
- .rspec
|
57
56
|
- .yardopts
|
58
57
|
- History.rdoc
|
@@ -62,7 +61,64 @@ files:
|
|
62
61
|
- VERSION
|
63
62
|
- ext/AutoItX/AutoItX.chm
|
64
63
|
- ext/AutoItX/AutoItX3.dll
|
65
|
-
-
|
64
|
+
- ext/IAccessibleDLL/IAccessibleDLL.sln
|
65
|
+
- ext/IAccessibleDLL/IAccessibleDLL.suo
|
66
|
+
- ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
|
67
|
+
- ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.vcxproj
|
68
|
+
- ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.vcxproj.filters
|
69
|
+
- ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.vcxproj.user
|
70
|
+
- ext/IAccessibleDLL/IAccessibleDLL/ReadMe.txt
|
71
|
+
- ext/IAccessibleDLL/IAccessibleDLL/dllmain.cpp
|
72
|
+
- ext/IAccessibleDLL/IAccessibleDLL/stdafx.cpp
|
73
|
+
- ext/IAccessibleDLL/IAccessibleDLL/stdafx.h
|
74
|
+
- ext/IAccessibleDLL/IAccessibleDLL/targetver.h
|
75
|
+
- ext/IAccessibleDLL/Release/IAccessibleDLL.dll
|
76
|
+
- ext/IAccessibleDLL/Release/IAccessibleDLL.exp
|
77
|
+
- ext/IAccessibleDLL/Release/IAccessibleDLL.lib
|
78
|
+
- ext/WindowsForms/bin/WindowsForms.exe
|
79
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms.sln
|
80
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms.suo
|
81
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/AboutBox.Designer.cs
|
82
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/AboutBox.cs
|
83
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/AboutBox.resx
|
84
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/DataEntryForm.Designer.cs
|
85
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/DataEntryForm.cs
|
86
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/DataEntryForm.resx
|
87
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/MainFormWindow.Designer.cs
|
88
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/MainFormWindow.cs
|
89
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/MainFormWindow.resx
|
90
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/PersonForm.Designer.cs
|
91
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/PersonForm.cs
|
92
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/PersonForm.resx
|
93
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/Program.cs
|
94
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/AssemblyInfo.cs
|
95
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Resources.Designer.cs
|
96
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Resources.resx
|
97
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Settings.Designer.cs
|
98
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Settings.settings
|
99
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/SimpleElementsForm.Designer.cs
|
100
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/SimpleElementsForm.cs
|
101
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/SimpleElementsForm.resx
|
102
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/WindowsForms.csproj
|
103
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Debug/WindowsForms.exe
|
104
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Debug/WindowsForms.pdb
|
105
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Debug/WindowsForms.vshost.exe
|
106
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Debug/WindowsForms.vshost.exe.manifest
|
107
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache
|
108
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
|
109
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/GenerateResource.read.1.tlog
|
110
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/GenerateResource.write.1.tlog
|
111
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/ResolveAssemblyReference.cache
|
112
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.AboutBox.resources
|
113
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.DataEntryForm.resources
|
114
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.MainFormWindow.resources
|
115
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.PersonForm.resources
|
116
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.Properties.Resources.resources
|
117
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.SimpleElementsForm.resources
|
118
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.csproj.FileListAbsolute.txt
|
119
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.exe
|
120
|
+
- ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.pdb
|
121
|
+
- lib/rautomation.rb
|
66
122
|
- lib/rautomation/adapter/autoit.rb
|
67
123
|
- lib/rautomation/adapter/autoit/button.rb
|
68
124
|
- lib/rautomation/adapter/autoit/locators.rb
|
@@ -71,22 +127,34 @@ files:
|
|
71
127
|
- lib/rautomation/adapter/helper.rb
|
72
128
|
- lib/rautomation/adapter/win_ffi.rb
|
73
129
|
- lib/rautomation/adapter/win_ffi/button.rb
|
130
|
+
- lib/rautomation/adapter/win_ffi/button_helper.rb
|
131
|
+
- lib/rautomation/adapter/win_ffi/checkbox.rb
|
74
132
|
- lib/rautomation/adapter/win_ffi/constants.rb
|
133
|
+
- lib/rautomation/adapter/win_ffi/control.rb
|
75
134
|
- lib/rautomation/adapter/win_ffi/functions.rb
|
76
135
|
- lib/rautomation/adapter/win_ffi/locators.rb
|
136
|
+
- lib/rautomation/adapter/win_ffi/radio.rb
|
137
|
+
- lib/rautomation/adapter/win_ffi/select_list.rb
|
138
|
+
- lib/rautomation/adapter/win_ffi/table.rb
|
77
139
|
- lib/rautomation/adapter/win_ffi/text_field.rb
|
78
140
|
- lib/rautomation/adapter/win_ffi/window.rb
|
79
141
|
- lib/rautomation/button.rb
|
142
|
+
- lib/rautomation/element_collections.rb
|
80
143
|
- lib/rautomation/text_field.rb
|
81
144
|
- lib/rautomation/wait_helper.rb
|
82
145
|
- lib/rautomation/window.rb
|
83
|
-
-
|
146
|
+
- spec/adapter/win_ffi/checkbox_spec.rb
|
147
|
+
- spec/adapter/win_ffi/radio_spec.rb
|
148
|
+
- spec/adapter/win_ffi/select_list_spec.rb
|
149
|
+
- spec/adapter/win_ffi/table_spec.rb
|
84
150
|
- spec/adapter/win_ffi/window_spec.rb
|
85
151
|
- spec/button_spec.rb
|
152
|
+
- spec/buttons_spec.rb
|
86
153
|
- spec/spec_helper.rb
|
87
|
-
- spec/test.html
|
88
154
|
- spec/text_field_spec.rb
|
155
|
+
- spec/text_fields_spec.rb
|
89
156
|
- spec/window_spec.rb
|
157
|
+
- spec/windows_spec.rb
|
90
158
|
has_rdoc: true
|
91
159
|
homepage: http://github.com/jarmo/RAutomation
|
92
160
|
licenses: []
|
@@ -122,8 +190,15 @@ signing_key:
|
|
122
190
|
specification_version: 3
|
123
191
|
summary: Automate windows and their controls through user-friendly API with Ruby
|
124
192
|
test_files:
|
193
|
+
- spec/adapter/win_ffi/checkbox_spec.rb
|
194
|
+
- spec/adapter/win_ffi/radio_spec.rb
|
195
|
+
- spec/adapter/win_ffi/select_list_spec.rb
|
196
|
+
- spec/adapter/win_ffi/table_spec.rb
|
125
197
|
- spec/adapter/win_ffi/window_spec.rb
|
198
|
+
- spec/buttons_spec.rb
|
126
199
|
- spec/button_spec.rb
|
127
200
|
- spec/spec_helper.rb
|
201
|
+
- spec/text_fields_spec.rb
|
128
202
|
- spec/text_field_spec.rb
|
203
|
+
- spec/windows_spec.rb
|
129
204
|
- spec/window_spec.rb
|
data/.gitignore
DELETED
data/rautomation.gemspec
DELETED
@@ -1,90 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{rautomation}
|
8
|
-
s.version = "0.4.0"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Jarmo Pertman"]
|
12
|
-
s.date = %q{2010-12-23}
|
13
|
-
s.description = %q{RAutomation is a small and easy to use library for helping out to automate windows and their controls
|
14
|
-
for automated testing.
|
15
|
-
|
16
|
-
RAutomation provides:
|
17
|
-
* Easy to use and user-friendly API (inspired by Watir http://www.watir.com)
|
18
|
-
* Cross-platform compatibility
|
19
|
-
* Easy extensibility - with small scripting effort it's possible to add support for not yet
|
20
|
-
supported platforms or technologies}
|
21
|
-
s.email = %q{jarmo.p@gmail.com}
|
22
|
-
s.extra_rdoc_files = [
|
23
|
-
"LICENSE",
|
24
|
-
"README.rdoc"
|
25
|
-
]
|
26
|
-
s.files = [
|
27
|
-
".document",
|
28
|
-
".gitignore",
|
29
|
-
".rspec",
|
30
|
-
".yardopts",
|
31
|
-
"History.rdoc",
|
32
|
-
"LICENSE",
|
33
|
-
"README.rdoc",
|
34
|
-
"Rakefile",
|
35
|
-
"VERSION",
|
36
|
-
"ext/AutoItX/AutoItX.chm",
|
37
|
-
"ext/AutoItX/AutoItX3.dll",
|
38
|
-
"lib/RAutomation.rb",
|
39
|
-
"lib/rautomation/adapter/autoit.rb",
|
40
|
-
"lib/rautomation/adapter/autoit/button.rb",
|
41
|
-
"lib/rautomation/adapter/autoit/locators.rb",
|
42
|
-
"lib/rautomation/adapter/autoit/text_field.rb",
|
43
|
-
"lib/rautomation/adapter/autoit/window.rb",
|
44
|
-
"lib/rautomation/adapter/helper.rb",
|
45
|
-
"lib/rautomation/adapter/win_ffi.rb",
|
46
|
-
"lib/rautomation/adapter/win_ffi/button.rb",
|
47
|
-
"lib/rautomation/adapter/win_ffi/constants.rb",
|
48
|
-
"lib/rautomation/adapter/win_ffi/functions.rb",
|
49
|
-
"lib/rautomation/adapter/win_ffi/locators.rb",
|
50
|
-
"lib/rautomation/adapter/win_ffi/text_field.rb",
|
51
|
-
"lib/rautomation/adapter/win_ffi/window.rb",
|
52
|
-
"lib/rautomation/button.rb",
|
53
|
-
"lib/rautomation/text_field.rb",
|
54
|
-
"lib/rautomation/wait_helper.rb",
|
55
|
-
"lib/rautomation/window.rb",
|
56
|
-
"rautomation.gemspec",
|
57
|
-
"spec/adapter/win_ffi/window_spec.rb",
|
58
|
-
"spec/button_spec.rb",
|
59
|
-
"spec/spec_helper.rb",
|
60
|
-
"spec/test.html",
|
61
|
-
"spec/text_field_spec.rb",
|
62
|
-
"spec/window_spec.rb"
|
63
|
-
]
|
64
|
-
s.homepage = %q{http://github.com/jarmo/RAutomation}
|
65
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
66
|
-
s.require_paths = ["lib"]
|
67
|
-
s.rubygems_version = %q{1.3.7}
|
68
|
-
s.summary = %q{Automate windows and their controls through user-friendly API with Ruby}
|
69
|
-
s.test_files = [
|
70
|
-
"spec/adapter/win_ffi/window_spec.rb",
|
71
|
-
"spec/button_spec.rb",
|
72
|
-
"spec/spec_helper.rb",
|
73
|
-
"spec/text_field_spec.rb",
|
74
|
-
"spec/window_spec.rb"
|
75
|
-
]
|
76
|
-
|
77
|
-
if s.respond_to? :specification_version then
|
78
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
79
|
-
s.specification_version = 3
|
80
|
-
|
81
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
82
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.3"])
|
83
|
-
else
|
84
|
-
s.add_dependency(%q<rspec>, ["~> 2.3"])
|
85
|
-
end
|
86
|
-
else
|
87
|
-
s.add_dependency(%q<rspec>, ["~> 2.3"])
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
data/spec/test.html
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<title>RAutomation testing page</title>
|
4
|
-
<script type="text/javascript">
|
5
|
-
function showPrompt() {
|
6
|
-
if (prompt("Where do you want to go today?")) {
|
7
|
-
showPrompt();
|
8
|
-
}
|
9
|
-
}
|
10
|
-
</script>
|
11
|
-
</head>
|
12
|
-
<body onload="setTimeout(showPrompt, 1000)">
|
13
|
-
<h1>RAutomation testing page</h1>
|
14
|
-
</body>
|
15
|
-
</html>
|