Move verbose selenium output that can clutter build output behind setting
This commit is contained in:
parent
1979a7fc7f
commit
68d5fde17a
@ -2,6 +2,7 @@
|
||||
|
||||
* Minor enhancements
|
||||
|
||||
* Move verbose selenium output that can clutter build output behind setting
|
||||
* Added application_port_for_selenium to webrat configuration. The use case is when you want to test through a web server sitting in front of your application server. (Luke Melia)
|
||||
* New webrat configuration option selenium_firefox_profile which is passed to selenium server
|
||||
|
||||
|
@ -72,6 +72,10 @@ module Webrat
|
||||
# loop? Defaults to 10
|
||||
attr_accessor :infinite_redirect_limit
|
||||
|
||||
# Print out the full HTML on wait failure
|
||||
# Defaults to false
|
||||
attr_accessor :selenium_verbose_output
|
||||
|
||||
def initialize # :nodoc:
|
||||
self.open_error_files = true
|
||||
self.application_environment = :test
|
||||
@ -82,6 +86,7 @@ module Webrat
|
||||
self.infinite_redirect_limit = 10
|
||||
self.selenium_browser_key = '*firefox'
|
||||
self.selenium_browser_startup_timeout = 5
|
||||
self.selenium_verbose_output = false
|
||||
|
||||
tmp_dir = Pathname.new(Dir.pwd).join("tmp")
|
||||
self.saved_pages_dir = tmp_dir.exist? ? tmp_dir : Dir.pwd
|
||||
|
@ -176,7 +176,7 @@ module Webrat
|
||||
|
||||
error_message = "#{message} (after #{timeout} sec)"
|
||||
|
||||
if $browser
|
||||
if $browser && Webrat.configuration.selenium_verbose_output
|
||||
error_message += <<-EOS
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user