oki-celerity 0.8.1.dev
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 +111 -0
- data/LICENSE +621 -0
- data/README.rdoc +80 -0
- data/Rakefile +11 -0
- data/VERSION.yml +5 -0
- data/celerity.gemspec +126 -0
- data/lib/celerity/browser.rb +908 -0
- data/lib/celerity/clickable_element.rb +73 -0
- data/lib/celerity/collections.rb +164 -0
- data/lib/celerity/container.rb +800 -0
- data/lib/celerity/default_viewer.rb +14 -0
- data/lib/celerity/disabled_element.rb +40 -0
- data/lib/celerity/element.rb +311 -0
- data/lib/celerity/element_collection.rb +107 -0
- data/lib/celerity/element_locator.rb +164 -0
- data/lib/celerity/elements/button.rb +54 -0
- data/lib/celerity/elements/file_field.rb +29 -0
- data/lib/celerity/elements/form.rb +22 -0
- data/lib/celerity/elements/frame.rb +86 -0
- data/lib/celerity/elements/image.rb +89 -0
- data/lib/celerity/elements/label.rb +16 -0
- data/lib/celerity/elements/link.rb +43 -0
- data/lib/celerity/elements/meta.rb +14 -0
- data/lib/celerity/elements/non_control_elements.rb +124 -0
- data/lib/celerity/elements/option.rb +38 -0
- data/lib/celerity/elements/radio_check.rb +114 -0
- data/lib/celerity/elements/select_list.rb +146 -0
- data/lib/celerity/elements/table.rb +153 -0
- data/lib/celerity/elements/table_cell.rb +36 -0
- data/lib/celerity/elements/table_elements.rb +42 -0
- data/lib/celerity/elements/table_row.rb +49 -0
- data/lib/celerity/elements/text_field.rb +168 -0
- data/lib/celerity/exception.rb +83 -0
- data/lib/celerity/htmlunit/apache-mime4j-0.6.jar +0 -0
- data/lib/celerity/htmlunit/commons-codec-1.4.jar +0 -0
- data/lib/celerity/htmlunit/commons-collections-3.2.1.jar +0 -0
- data/lib/celerity/htmlunit/commons-io-1.4.jar +0 -0
- data/lib/celerity/htmlunit/commons-lang-2.5.jar +0 -0
- data/lib/celerity/htmlunit/commons-logging-1.1.1.jar +0 -0
- data/lib/celerity/htmlunit/cssparser-0.9.5.jar +0 -0
- data/lib/celerity/htmlunit/htmlunit-2.9-SNAPSHOT.jar +0 -0
- data/lib/celerity/htmlunit/htmlunit-core-js-2.8.jar +0 -0
- data/lib/celerity/htmlunit/httpclient-4.0.1.jar +0 -0
- data/lib/celerity/htmlunit/httpcore-4.0.1.jar +0 -0
- data/lib/celerity/htmlunit/httpmime-4.0.1.jar +0 -0
- data/lib/celerity/htmlunit/nekohtml-1.9.14.jar +0 -0
- data/lib/celerity/htmlunit/sac-1.3.jar +0 -0
- data/lib/celerity/htmlunit/serializer-2.7.1.jar +0 -0
- data/lib/celerity/htmlunit/xalan-2.7.1.jar +0 -0
- data/lib/celerity/htmlunit/xercesImpl-2.9.1.jar +0 -0
- data/lib/celerity/htmlunit/xml-apis-1.3.04.jar +0 -0
- data/lib/celerity/htmlunit.rb +64 -0
- data/lib/celerity/identifier.rb +28 -0
- data/lib/celerity/ignoring_web_connection.rb +15 -0
- data/lib/celerity/input_element.rb +25 -0
- data/lib/celerity/javascript_debugger.rb +32 -0
- data/lib/celerity/listener.rb +143 -0
- data/lib/celerity/resources/no_viewer.png +0 -0
- data/lib/celerity/short_inspect.rb +20 -0
- data/lib/celerity/util.rb +129 -0
- data/lib/celerity/version.rb +3 -0
- data/lib/celerity/viewer_connection.rb +89 -0
- data/lib/celerity/watir_compatibility.rb +70 -0
- data/lib/celerity/xpath_support.rb +52 -0
- data/lib/celerity.rb +77 -0
- data/tasks/benchmark.rake +4 -0
- data/tasks/check.rake +24 -0
- data/tasks/clean.rake +3 -0
- data/tasks/fix.rake +25 -0
- data/tasks/jar.rake +55 -0
- data/tasks/jeweler.rake +28 -0
- data/tasks/rdoc.rake +4 -0
- data/tasks/snapshot.rake +25 -0
- data/tasks/spec.rake +26 -0
- data/tasks/website.rake +10 -0
- data/tasks/yard.rake +16 -0
- metadata +204 -0
data/README.rdoc
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
= Celerity
|
2
|
+
|
3
|
+
* http://celerity.rubyforge.org/
|
4
|
+
|
5
|
+
== Description
|
6
|
+
|
7
|
+
Celerity is a JRuby library for easy and fast functional test automation for web applications.
|
8
|
+
|
9
|
+
Celerity is a JRuby wrapper around HtmlUnit – a headless Java browser with
|
10
|
+
JavaScript support. It provides a simple API for programmatic navigation through
|
11
|
+
web applications. Celerity provides a superset of Watir's API.
|
12
|
+
|
13
|
+
== Features
|
14
|
+
|
15
|
+
* *Fast*: No time-consuming GUI rendering or unessential downloads
|
16
|
+
* *Scalable*: Java threads lets you run tests in parallel
|
17
|
+
* *Easy to use*: Simple API
|
18
|
+
* *Portable*: Cross-platform thanks to the JVM
|
19
|
+
* *Unintrusive*: No browser window interrupting your workflow (runs in background)
|
20
|
+
|
21
|
+
== Requirements
|
22
|
+
|
23
|
+
* JRuby 1.2.0 or higher
|
24
|
+
* Java 6
|
25
|
+
|
26
|
+
== Install
|
27
|
+
|
28
|
+
jruby -S gem install celerity
|
29
|
+
|
30
|
+
To always get the latest version, you should use Gemcutter as your primary gem source:
|
31
|
+
|
32
|
+
jruby -S gem install gemcutter
|
33
|
+
jruby -S gem tumble
|
34
|
+
jruby -S gem install celerity
|
35
|
+
|
36
|
+
|
37
|
+
== Example
|
38
|
+
|
39
|
+
require "rubygems"
|
40
|
+
require "celerity"
|
41
|
+
|
42
|
+
browser = Celerity::Browser.new
|
43
|
+
browser.goto('http://www.google.com')
|
44
|
+
browser.text_field(:name, 'q').value = 'Celerity'
|
45
|
+
browser.button(:name, 'btnG').click
|
46
|
+
|
47
|
+
puts "yay" if browser.text.include? 'celerity.rubyforge.org'
|
48
|
+
|
49
|
+
== Source
|
50
|
+
|
51
|
+
The source code is available on [GitHub](http://github.com/jarib/celerity/tree/master).
|
52
|
+
|
53
|
+
|
54
|
+
== Wiki & Bug Tracker
|
55
|
+
|
56
|
+
* [Wiki](http://github.com/jarib/celerity/wikis)
|
57
|
+
* [Bug Tracker](http://github.com/jarib/celerity/issues)
|
58
|
+
|
59
|
+
== Related projects
|
60
|
+
|
61
|
+
* [WatirSpec](http://github.com/jarib/watirspec/tree/master)
|
62
|
+
* [Celerity Viewers](http://github.com/jarib/celerity-viewers)
|
63
|
+
|
64
|
+
== License
|
65
|
+
|
66
|
+
Celerity - JRuby wrapper for HtmlUnit
|
67
|
+
Copyright (c) 2008-2010 FINN.no AS
|
68
|
+
|
69
|
+
This program is free software: you can redistribute it and/or modify
|
70
|
+
it under the terms of the GNU General Public License as published by
|
71
|
+
the Free Software Foundation, either version 3 of the License, or
|
72
|
+
(at your option) any later version.
|
73
|
+
|
74
|
+
This program is distributed in the hope that it will be useful,
|
75
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
76
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
77
|
+
GNU General Public License for more details.
|
78
|
+
|
79
|
+
You should have received a copy of the GNU General Public License
|
80
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
data/Rakefile
ADDED
data/VERSION.yml
ADDED
data/celerity.gemspec
ADDED
@@ -0,0 +1,126 @@
|
|
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{oki-celerity}
|
8
|
+
s.version = "0.8.1.dev"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Jari Bakken", "T. Alexander Lystad", "Knut Johannes Dahle"]
|
12
|
+
s.date = %q{2010-08-27}
|
13
|
+
s.description = %q{Celerity is a JRuby wrapper around HtmlUnit – a headless Java browser with JavaScript support. It provides a simple API for programmatic navigation through web applications. Celerity provides a superset of Watir's API.}
|
14
|
+
s.email = %q{jari.bakken@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
"HISTORY",
|
21
|
+
"LICENSE",
|
22
|
+
"README.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION.yml",
|
25
|
+
"celerity.gemspec",
|
26
|
+
"lib/celerity.rb",
|
27
|
+
"lib/celerity/browser.rb",
|
28
|
+
"lib/celerity/clickable_element.rb",
|
29
|
+
"lib/celerity/collections.rb",
|
30
|
+
"lib/celerity/container.rb",
|
31
|
+
"lib/celerity/default_viewer.rb",
|
32
|
+
"lib/celerity/disabled_element.rb",
|
33
|
+
"lib/celerity/element.rb",
|
34
|
+
"lib/celerity/element_collection.rb",
|
35
|
+
"lib/celerity/element_locator.rb",
|
36
|
+
"lib/celerity/elements/button.rb",
|
37
|
+
"lib/celerity/elements/file_field.rb",
|
38
|
+
"lib/celerity/elements/form.rb",
|
39
|
+
"lib/celerity/elements/frame.rb",
|
40
|
+
"lib/celerity/elements/image.rb",
|
41
|
+
"lib/celerity/elements/label.rb",
|
42
|
+
"lib/celerity/elements/link.rb",
|
43
|
+
"lib/celerity/elements/meta.rb",
|
44
|
+
"lib/celerity/elements/non_control_elements.rb",
|
45
|
+
"lib/celerity/elements/option.rb",
|
46
|
+
"lib/celerity/elements/radio_check.rb",
|
47
|
+
"lib/celerity/elements/select_list.rb",
|
48
|
+
"lib/celerity/elements/table.rb",
|
49
|
+
"lib/celerity/elements/table_cell.rb",
|
50
|
+
"lib/celerity/elements/table_elements.rb",
|
51
|
+
"lib/celerity/elements/table_row.rb",
|
52
|
+
"lib/celerity/elements/text_field.rb",
|
53
|
+
"lib/celerity/exception.rb",
|
54
|
+
"lib/celerity/htmlunit.rb",
|
55
|
+
"lib/celerity/htmlunit/apache-mime4j-0.6.jar",
|
56
|
+
"lib/celerity/htmlunit/commons-codec-1.4.jar",
|
57
|
+
"lib/celerity/htmlunit/commons-collections-3.2.1.jar",
|
58
|
+
"lib/celerity/htmlunit/commons-io-1.4.jar",
|
59
|
+
"lib/celerity/htmlunit/commons-lang-2.5.jar",
|
60
|
+
"lib/celerity/htmlunit/commons-logging-1.1.1.jar",
|
61
|
+
"lib/celerity/htmlunit/cssparser-0.9.5.jar",
|
62
|
+
"lib/celerity/htmlunit/htmlunit-2.9-SNAPSHOT.jar",
|
63
|
+
"lib/celerity/htmlunit/htmlunit-core-js-2.8.jar",
|
64
|
+
"lib/celerity/htmlunit/httpclient-4.0.1.jar",
|
65
|
+
"lib/celerity/htmlunit/httpcore-4.0.1.jar",
|
66
|
+
"lib/celerity/htmlunit/httpmime-4.0.1.jar",
|
67
|
+
"lib/celerity/htmlunit/nekohtml-1.9.14.jar",
|
68
|
+
"lib/celerity/htmlunit/sac-1.3.jar",
|
69
|
+
"lib/celerity/htmlunit/serializer-2.7.1.jar",
|
70
|
+
"lib/celerity/htmlunit/xalan-2.7.1.jar",
|
71
|
+
"lib/celerity/htmlunit/xercesImpl-2.9.1.jar",
|
72
|
+
"lib/celerity/htmlunit/xml-apis-1.3.04.jar",
|
73
|
+
"lib/celerity/identifier.rb",
|
74
|
+
"lib/celerity/ignoring_web_connection.rb",
|
75
|
+
"lib/celerity/input_element.rb",
|
76
|
+
"lib/celerity/javascript_debugger.rb",
|
77
|
+
"lib/celerity/listener.rb",
|
78
|
+
"lib/celerity/resources/no_viewer.png",
|
79
|
+
"lib/celerity/short_inspect.rb",
|
80
|
+
"lib/celerity/util.rb",
|
81
|
+
"lib/celerity/version.rb",
|
82
|
+
"lib/celerity/viewer_connection.rb",
|
83
|
+
"lib/celerity/watir_compatibility.rb",
|
84
|
+
"lib/celerity/xpath_support.rb",
|
85
|
+
"tasks/benchmark.rake",
|
86
|
+
"tasks/check.rake",
|
87
|
+
"tasks/clean.rake",
|
88
|
+
"tasks/fix.rake",
|
89
|
+
"tasks/jar.rake",
|
90
|
+
"tasks/jeweler.rake",
|
91
|
+
"tasks/rdoc.rake",
|
92
|
+
"tasks/snapshot.rake",
|
93
|
+
"tasks/spec.rake",
|
94
|
+
"tasks/website.rake",
|
95
|
+
"tasks/yard.rake"
|
96
|
+
]
|
97
|
+
s.homepage = %q{http://github.com/oki/celerity}
|
98
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
99
|
+
s.require_paths = ["lib"]
|
100
|
+
s.rubyforge_project = %q{oki-celerity}
|
101
|
+
s.rubygems_version = %q{1.3.7}
|
102
|
+
s.summary = %q{Celerity is a JRuby library for easy and fast functional test automation for web applications.}
|
103
|
+
|
104
|
+
if s.respond_to? :specification_version then
|
105
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
106
|
+
s.specification_version = 3
|
107
|
+
|
108
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
109
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
110
|
+
s.add_development_dependency(%q<yard>, [">= 0"])
|
111
|
+
s.add_development_dependency(%q<sinatra>, [">= 1.0"])
|
112
|
+
s.add_development_dependency(%q<mongrel>, [">= 0"])
|
113
|
+
else
|
114
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
115
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
116
|
+
s.add_dependency(%q<sinatra>, [">= 1.0"])
|
117
|
+
s.add_dependency(%q<mongrel>, [">= 0"])
|
118
|
+
end
|
119
|
+
else
|
120
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
121
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
122
|
+
s.add_dependency(%q<sinatra>, [">= 1.0"])
|
123
|
+
s.add_dependency(%q<mongrel>, [">= 0"])
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|