<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,10 @@ Author:      Andre Foeken - Nedap
 Article:     http://www.movesonrails.com/
 Bug Tracker: http://nedaphealthcare.lighthouseapp.com/projects/15738/home
 
+Special thanks: Notch8 for making the rake stuff work like it should
+
 NOTE: All this has only been tested under osx
+NOTE: Updating from previous version? Remove the selenium-specr plugin!
 
 Using your stories to drive selenium is a breeze when you are using the webrat story steps. You need to do some legwork first by installing the items:
 
@@ -19,6 +22,8 @@ We no longer need to add anything to the story to run via selenium.
 1.) Run './script/generate stories' again if you installed the previous version without selenium support. It will add the helper to your stories directory.
 
 2.) Start selenium server and mongrel/webrick: 'rake selenium:start'
-    This will start selenium, and run script/server with the correct arguments (-e test -p 3800 --debugger)
+    This will start selenium, and run script/server with the correct arguments (-e test -p 3000 --debugger)
 
 3.) Now run your story with the SELENIUM variable set: 'SELENIUM=true ruby stories/story_spec.rb'
+
+NOTE: If you want specific environment stuff in your selenium session just create a selenium environment / database config and it will default to that.
\ No newline at end of file</diff>
      <filename>SELENIUM</filename>
    </modified>
    <modified>
      <diff>@@ -2,12 +2,18 @@ namespace :selenium do
   desc &quot;Start the selenium server&quot;
   task :start do
     pid = fork do
-      exec &quot;java -jar #{SELENIUM_PLUGIN_ROOT}/lib/selenium/openqa/selenium-server.jar.txt &gt;&gt; #{RAILS_ROOT}/log/selenium.log&quot;
+      exec &quot;java -jar #{SELENIUM_PLUGIN_ROOT}/lib/selenium/openqa/selenium-server.jar.txt -port 4444 &gt;&gt; #{RAILS_ROOT}/log/selenium.log&quot;
     end
     # wait a few seconds to make sure it's finished starting
     sleep 3
     puts &quot;Killing this server will also stop Selenium&quot;
-    exec &quot;SSL_DISABLED='true' ruby script/server -e test --debugger -p 3800&quot;
+    
+    if YAML::load_file(&quot;#{RAILS_ROOT}/config/database.yml&quot;).has_key?(&quot;selenium&quot;)
+      exec &quot;SSL_DISABLED='true' ruby script/server -e selenium -p 3800&quot;
+    else
+      exec &quot;SSL_DISABLED='true' ruby script/server -e test -p 3800&quot;
+    end
+    
   end
 end
  </diff>
      <filename>tasks/selenium.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7cfb4ac1c8152b9dd9a774d4bc05584270f81a21</id>
    </parent>
  </parents>
  <author>
    <name>Andre Foeken</name>
    <email>andre.foeken@nedap.com</email>
  </author>
  <url>http://github.com/foeken/webrat_story_steps/commit/360834b8a4c97605c3df149f918f5087ff29fd14</url>
  <id>360834b8a4c97605c3df149f918f5087ff29fd14</id>
  <committed-date>2008-09-24T03:04:21-07:00</committed-date>
  <authored-date>2008-09-24T03:04:21-07:00</authored-date>
  <message>Added thanks to Notch8 and added use of 'selenium' environment if available</message>
  <tree>dc9d6a0d80f5095210907dd659a8a6002a23abb9</tree>
  <committer>
    <name>Andre Foeken</name>
    <email>andre.foeken@nedap.com</email>
  </committer>
</commit>
