caius-celerity 0.0.6.10
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.txt +75 -0
- data/License.txt +621 -0
- data/README.txt +73 -0
- data/Rakefile +12 -0
- data/lib/celerity/browser.rb +823 -0
- data/lib/celerity/clickable_element.rb +69 -0
- data/lib/celerity/collections.rb +156 -0
- data/lib/celerity/container.rb +788 -0
- data/lib/celerity/default_viewer.rb +10 -0
- data/lib/celerity/disabled_element.rb +40 -0
- data/lib/celerity/element.rb +313 -0
- data/lib/celerity/element_collection.rb +107 -0
- data/lib/celerity/element_locator.rb +170 -0
- data/lib/celerity/elements/button.rb +43 -0
- data/lib/celerity/elements/file_field.rb +25 -0
- data/lib/celerity/elements/form.rb +23 -0
- data/lib/celerity/elements/frame.rb +75 -0
- data/lib/celerity/elements/image.rb +76 -0
- data/lib/celerity/elements/label.rb +11 -0
- data/lib/celerity/elements/link.rb +30 -0
- data/lib/celerity/elements/meta.rb +6 -0
- data/lib/celerity/elements/non_control_elements.rb +106 -0
- data/lib/celerity/elements/option.rb +32 -0
- data/lib/celerity/elements/radio_check.rb +115 -0
- data/lib/celerity/elements/select_list.rb +121 -0
- data/lib/celerity/elements/table.rb +144 -0
- data/lib/celerity/elements/table_cell.rb +29 -0
- data/lib/celerity/elements/table_elements.rb +42 -0
- data/lib/celerity/elements/table_row.rb +48 -0
- data/lib/celerity/elements/text_field.rb +169 -0
- data/lib/celerity/exception.rb +77 -0
- data/lib/celerity/htmlunit/commons-codec-1.3.jar +0 -0
- data/lib/celerity/htmlunit/commons-collections-3.2.1.jar +0 -0
- data/lib/celerity/htmlunit/commons-httpclient-3.1.jar +0 -0
- data/lib/celerity/htmlunit/commons-io-1.4.jar +0 -0
- data/lib/celerity/htmlunit/commons-lang-2.4.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.6-SNAPSHOT.jar +0 -0
- data/lib/celerity/htmlunit/htmlunit-core-js-2.5.jar +0 -0
- data/lib/celerity/htmlunit/nekohtml-1.9.13-20090507.082850-2.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.8.1.jar +0 -0
- data/lib/celerity/htmlunit/xml-apis-1.3.04.jar +0 -0
- data/lib/celerity/htmlunit.rb +61 -0
- data/lib/celerity/identifier.rb +11 -0
- data/lib/celerity/input_element.rb +25 -0
- data/lib/celerity/listener.rb +141 -0
- data/lib/celerity/resources/no_viewer.png +0 -0
- data/lib/celerity/short_inspect.rb +20 -0
- data/lib/celerity/util.rb +91 -0
- data/lib/celerity/version.rb +10 -0
- data/lib/celerity/watir_compatibility.rb +84 -0
- data/lib/celerity.rb +74 -0
- data/tasks/jar.rake +57 -0
- data/tasks/rdoc.rake +4 -0
- metadata +130 -0
data/README.txt
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
= Celerity
|
|
2
|
+
|
|
3
|
+
* http://celerity.rubyforge.org/
|
|
4
|
+
|
|
5
|
+
== DESCRIPTION:
|
|
6
|
+
|
|
7
|
+
Celerity is a JRuby wrapper around HtmlUnit – a headless Java browser with
|
|
8
|
+
JavaScript support. It provides a simple API for programmatic navigation through
|
|
9
|
+
web applications. Celerity aims at being API compatible with Watir.
|
|
10
|
+
|
|
11
|
+
== FEATURES:
|
|
12
|
+
|
|
13
|
+
* Fast: No time-consuming GUI rendering or unessential downloads
|
|
14
|
+
* Scalable: Java threads lets you run tests in parallel
|
|
15
|
+
* Easy to use: Simple API
|
|
16
|
+
* Portable: Cross-platform
|
|
17
|
+
* Unintrusive: No browser window interrupting your workflow (runs in background)
|
|
18
|
+
|
|
19
|
+
== REQUIREMENTS:
|
|
20
|
+
|
|
21
|
+
* JRuby 1.2.0 or higher
|
|
22
|
+
* Java 6
|
|
23
|
+
|
|
24
|
+
== INSTALL:
|
|
25
|
+
|
|
26
|
+
`jruby -S gem install celerity`
|
|
27
|
+
|
|
28
|
+
or from GitHub
|
|
29
|
+
|
|
30
|
+
`jruby -S gem install jarib-celerity`
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
== EXAMPLE:
|
|
34
|
+
|
|
35
|
+
require "rubygems"
|
|
36
|
+
require "celerity"
|
|
37
|
+
|
|
38
|
+
browser = Celerity::Browser.new
|
|
39
|
+
browser.goto('http://www.google.com')
|
|
40
|
+
browser.text_field(:name, 'q').value = 'Celerity'
|
|
41
|
+
browser.button(:name, 'btnG').click
|
|
42
|
+
|
|
43
|
+
puts "yay" if browser.text.include? 'celerity.rubyforge.org'
|
|
44
|
+
|
|
45
|
+
== SOURCE
|
|
46
|
+
|
|
47
|
+
The source code is available at http://github.com/jarib/celerity/tree/master
|
|
48
|
+
|
|
49
|
+
== WIKI:
|
|
50
|
+
|
|
51
|
+
* http://github.com/jarib/celerity/wikis
|
|
52
|
+
|
|
53
|
+
== BUG TRACKER:
|
|
54
|
+
|
|
55
|
+
* http://github.com/jarib/celerity/issues
|
|
56
|
+
|
|
57
|
+
== LICENSE:
|
|
58
|
+
|
|
59
|
+
Celerity - JRuby wrapper for HtmlUnit
|
|
60
|
+
Copyright (c) 2008 FINN.no AS
|
|
61
|
+
|
|
62
|
+
This program is free software: you can redistribute it and/or modify
|
|
63
|
+
it under the terms of the GNU General Public License as published by
|
|
64
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
65
|
+
(at your option) any later version.
|
|
66
|
+
|
|
67
|
+
This program is distributed in the hope that it will be useful,
|
|
68
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
69
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
70
|
+
GNU General Public License for more details.
|
|
71
|
+
|
|
72
|
+
You should have received a copy of the GNU General Public License
|
|
73
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
$:.unshift("#{File.dirname(__FILE__)}/lib")
|
|
2
|
+
|
|
3
|
+
if File.exist?('config') # are we in a git clone
|
|
4
|
+
require 'config/requirements'
|
|
5
|
+
require 'config/hoe' # setup Hoe + all gem configuration
|
|
6
|
+
Dir['tasks/**/*.rake'].each { |rake| load rake }
|
|
7
|
+
else # in gem dir
|
|
8
|
+
load 'tasks/jar.rake'
|
|
9
|
+
load 'tasks/rdoc.rake'
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
|