celerity 0.7.8 → 0.7.9
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/VERSION.yml +2 -2
- data/celerity.gemspec +3 -3
- data/lib/celerity/browser.rb +10 -2
- data/lib/celerity/elements/form.rb +0 -11
- data/lib/celerity/htmlunit/htmlunit-2.7-SNAPSHOT.jar +0 -0
- data/lib/celerity/htmlunit/htmlunit-core-js-2.7-SNAPSHOT.jar +0 -0
- data/lib/celerity/htmlunit/{nekohtml-1.9.14-20091214.212542-7.jar → nekohtml-1.9.14-20100122.114035-12.jar} +0 -0
- data/lib/celerity/version.rb +1 -1
- metadata +3 -3
data/VERSION.yml
CHANGED
data/celerity.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{celerity}
|
|
8
|
-
s.version = "0.7.
|
|
8
|
+
s.version = "0.7.9"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Jari Bakken", "T. Alexander Lystad", "Knut Johannes Dahle"]
|
|
12
|
-
s.date = %q{2010-
|
|
12
|
+
s.date = %q{2010-02-10}
|
|
13
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
14
|
s.email = %q{jari.bakken@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -61,7 +61,7 @@ Gem::Specification.new do |s|
|
|
|
61
61
|
"lib/celerity/htmlunit/cssparser-0.9.5.jar",
|
|
62
62
|
"lib/celerity/htmlunit/htmlunit-2.7-SNAPSHOT.jar",
|
|
63
63
|
"lib/celerity/htmlunit/htmlunit-core-js-2.7-SNAPSHOT.jar",
|
|
64
|
-
"lib/celerity/htmlunit/nekohtml-1.9.14-
|
|
64
|
+
"lib/celerity/htmlunit/nekohtml-1.9.14-20100122.114035-12.jar",
|
|
65
65
|
"lib/celerity/htmlunit/sac-1.3.jar",
|
|
66
66
|
"lib/celerity/htmlunit/serializer-2.7.1.jar",
|
|
67
67
|
"lib/celerity/htmlunit/xalan-2.7.1.jar",
|
data/lib/celerity/browser.rb
CHANGED
|
@@ -67,8 +67,6 @@ module Celerity
|
|
|
67
67
|
|
|
68
68
|
@render_type = opts.delete(:render) || :html
|
|
69
69
|
@charset = opts.delete(:charset) || "UTF-8"
|
|
70
|
-
self.log_level = opts.delete(:log_level) || :off
|
|
71
|
-
|
|
72
70
|
@page = nil
|
|
73
71
|
@error_checkers = []
|
|
74
72
|
@browser = self # for Container#browser
|
|
@@ -76,6 +74,8 @@ module Celerity
|
|
|
76
74
|
setup_webclient opts
|
|
77
75
|
setup_viewer opts.delete(:viewer)
|
|
78
76
|
|
|
77
|
+
self.log_level = opts.delete(:log_level) || :off
|
|
78
|
+
|
|
79
79
|
raise ArgumentError, "unknown option #{opts.inspect}" unless opts.empty?
|
|
80
80
|
end
|
|
81
81
|
|
|
@@ -712,6 +712,14 @@ module Celerity
|
|
|
712
712
|
@webclient.isJavaScriptEnabled
|
|
713
713
|
end
|
|
714
714
|
|
|
715
|
+
#
|
|
716
|
+
# Open the JavaScript debugger GUI
|
|
717
|
+
#
|
|
718
|
+
|
|
719
|
+
def visual_debugger
|
|
720
|
+
HtmlUnit::Util::WebClientUtils.attachVisualDebugger @webclient
|
|
721
|
+
end
|
|
722
|
+
|
|
715
723
|
#
|
|
716
724
|
# Sets the current page object for the browser
|
|
717
725
|
#
|
|
@@ -18,16 +18,5 @@ module Celerity
|
|
|
18
18
|
]
|
|
19
19
|
DEFAULT_HOW = :name
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
# Submits the form.
|
|
23
|
-
#
|
|
24
|
-
# This method should be avoided - invoke the user interface element that triggers the submit instead.
|
|
25
|
-
#
|
|
26
|
-
|
|
27
|
-
def submit
|
|
28
|
-
assert_exists
|
|
29
|
-
@object.submit(nil)
|
|
30
|
-
end
|
|
31
|
-
|
|
32
21
|
end # Form
|
|
33
22
|
end # Celerity
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/celerity/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: celerity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jari Bakken
|
|
@@ -11,7 +11,7 @@ autorequire:
|
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
13
|
|
|
14
|
-
date: 2010-
|
|
14
|
+
date: 2010-02-10 00:00:00 +01:00
|
|
15
15
|
default_executable:
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
@@ -98,7 +98,7 @@ files:
|
|
|
98
98
|
- lib/celerity/htmlunit/cssparser-0.9.5.jar
|
|
99
99
|
- lib/celerity/htmlunit/htmlunit-2.7-SNAPSHOT.jar
|
|
100
100
|
- lib/celerity/htmlunit/htmlunit-core-js-2.7-SNAPSHOT.jar
|
|
101
|
-
- lib/celerity/htmlunit/nekohtml-1.9.14-
|
|
101
|
+
- lib/celerity/htmlunit/nekohtml-1.9.14-20100122.114035-12.jar
|
|
102
102
|
- lib/celerity/htmlunit/sac-1.3.jar
|
|
103
103
|
- lib/celerity/htmlunit/serializer-2.7.1.jar
|
|
104
104
|
- lib/celerity/htmlunit/xalan-2.7.1.jar
|