jwilger-webrat 0.4.2 → 0.4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/webrat.rb +1 -1
- data/lib/webrat/core/configuration.rb +8 -2
- data/lib/webrat/selenium.rb +1 -0
- metadata +3 -2
data/lib/webrat.rb
CHANGED
@@ -51,6 +51,12 @@ module Webrat
|
|
51
51
|
# Set the key that Selenium uses to determine the browser running. Default *firefox
|
52
52
|
attr_accessor :selenium_browser_key
|
53
53
|
|
54
|
+
# Set the timeout argument for the Selenium jar
|
55
|
+
attr_accessor :selenium_server_timeout
|
56
|
+
|
57
|
+
# Set any additional arguments (as a string) to pass to the Selenium RC jar
|
58
|
+
attr_accessor :selenium_server_args
|
59
|
+
|
54
60
|
# How many redirects to the same URL should be halted as an infinite redirect
|
55
61
|
# loop? Defaults to 10
|
56
62
|
attr_accessor :infinite_redirect_limit
|
@@ -64,6 +70,7 @@ module Webrat
|
|
64
70
|
self.selenium_server_port = 4444
|
65
71
|
self.infinite_redirect_limit = 10
|
66
72
|
self.selenium_browser_key = '*firefox'
|
73
|
+
self.selenium_server_timeout = 5
|
67
74
|
end
|
68
75
|
|
69
76
|
def parse_with_nokogiri? #:nodoc:
|
@@ -90,5 +97,4 @@ module Webrat
|
|
90
97
|
end
|
91
98
|
|
92
99
|
end
|
93
|
-
|
94
|
-
end
|
100
|
+
end
|
data/lib/webrat/selenium.rb
CHANGED
@@ -16,6 +16,7 @@ module Webrat
|
|
16
16
|
unless Webrat.configuration.selenium_server_address
|
17
17
|
remote_control = ::Selenium::RemoteControl::RemoteControl.new("0.0.0.0", Webrat.configuration.selenium_server_port, 5)
|
18
18
|
remote_control.jar_file = File.expand_path(__FILE__ + "../../../../vendor/selenium-server.jar")
|
19
|
+
remote_control.additional_args = Webrat.configuration.selenium_server_args
|
19
20
|
remote_control.start :background => true
|
20
21
|
end
|
21
22
|
TCPSocket.wait_for_service :host => (Webrat.configuration.selenium_server_address || "0.0.0.0"), :port => Webrat.configuration.selenium_server_port
|
metadata
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jwilger-webrat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.2
|
4
|
+
version: 0.4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Helmkamp
|
8
|
+
- John Wilger
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
@@ -112,7 +113,7 @@ files:
|
|
112
113
|
- lib/webrat.rb
|
113
114
|
- vendor/selenium-server.jar
|
114
115
|
has_rdoc: true
|
115
|
-
homepage: http://github.com/
|
116
|
+
homepage: http://github.com/jwilger/webrat
|
116
117
|
post_install_message:
|
117
118
|
rdoc_options: []
|
118
119
|
|