jwilger-webrat 0.4.4.3 → 0.4.4.4
Sign up to get free protection for your applications and to get access to all the features.
data/lib/webrat.rb
CHANGED
@@ -50,6 +50,9 @@ module Webrat
|
|
50
50
|
|
51
51
|
# Which server Selenium port is running on. Defaults to 4444
|
52
52
|
attr_accessor :selenium_server_port
|
53
|
+
|
54
|
+
# If true, force Selenium RC to use a single window instead of the default two windows
|
55
|
+
attr_accessor :selenium_use_single_window
|
53
56
|
|
54
57
|
# Set the key that Selenium uses to determine the browser running. Default *firefox
|
55
58
|
attr_accessor :selenium_browser_key
|
@@ -76,6 +79,7 @@ module Webrat
|
|
76
79
|
self.selenium_browser_key = '*firefox'
|
77
80
|
self.selenium_browser_startup_timeout = 5
|
78
81
|
self.browser_action_timeout = 5
|
82
|
+
self.selenium_use_single_window = true
|
79
83
|
end
|
80
84
|
|
81
85
|
def parse_with_nokogiri? #:nodoc:
|
@@ -38,6 +38,7 @@ module Webrat
|
|
38
38
|
Webrat.configuration.selenium_server_port,
|
39
39
|
Webrat.configuration.selenium_browser_startup_timeout)
|
40
40
|
@remote_control.jar_file = jar_path
|
41
|
+
@remote_control.additional_args << "-singleWindow" if Webrat.configuration.selenium_use_single_window
|
41
42
|
|
42
43
|
return @remote_control
|
43
44
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jwilger-webrat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.4.
|
4
|
+
version: 0.4.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Helmkamp
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-26 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|