<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -27,9 +27,17 @@ module Webrat
     # Save and open pages with error status codes (500-599) in a browser? Defualts to true.
     attr_writer :open_error_files
     
+    # Which environment should the selenium tests be run in? Defaults to selenium.
+    attr_accessor :selenium_environment
+
+    # Which port should the selenium tests be run on? Defaults to 3001.
+    attr_accessor :selenium_port
+
     def initialize # :nodoc:
       self.open_error_files = true
       self.parse_with_nokogiri = !Webrat.on_java?
+      self.selenium_environment = :selenium
+      self.selenium_port = 3001
     end
     
     def parse_with_nokogiri? #:nodoc:</diff>
      <filename>lib/webrat/core/configuration.rb</filename>
    </modified>
    <modified>
      <diff>@@ -26,8 +26,8 @@ module Webrat
   
   def self.start_app_server #:nodoc:
     pid_file = File.expand_path(RAILS_ROOT + &quot;/tmp/pids/mongrel_selenium.pid&quot;)
-    system(&quot;mongrel_rails start -d --chdir=#{RAILS_ROOT} --port=3001 --environment=selenium --pid #{pid_file} &amp;&quot;)
-    TCPSocket.wait_for_service :host =&gt; &quot;0.0.0.0&quot;, :port =&gt; 3001
+    system(&quot;mongrel_rails start -d --chdir=#{RAILS_ROOT} --port=#{Webrat.configuration.selenium_port.to_s} --environment=#{Webrat.configuration.selenium_environment.to_s} --pid #{pid_file} &amp;&quot;)
+    TCPSocket.wait_for_service :host =&gt; &quot;0.0.0.0&quot;, :port =&gt; Webrat.configuration.selenium_port.to_i
   end
   
   def self.stop_app_server #:nodoc:</diff>
      <filename>lib/webrat/selenium.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>362df8abf0f0930ee95fa0b8a708191afa57578e</id>
    </parent>
  </parents>
  <author>
    <name>Kieran Pilkington</name>
    <email>kieran@katipo.co.nz</email>
  </author>
  <url>http://github.com/brynary/webrat/commit/2c51d908301e23a8594eda49f0d64ce197b3e842</url>
  <id>2c51d908301e23a8594eda49f0d64ce197b3e842</id>
  <committed-date>2008-12-27T14:39:34-08:00</committed-date>
  <authored-date>2008-12-27T14:39:34-08:00</authored-date>
  <message>adding configuration option to change seleniums environment and port settings</message>
  <tree>96e77d36e280c4d356b6222e1c8a1330bf335723</tree>
  <committer>
    <name>Kieran Pilkington</name>
    <email>kieran@katipo.co.nz</email>
  </committer>
</commit>
