package com.thoughtworks.selenium;

import junit.framework.Test;

/**
 * This class executes the same tests that ClientDriverSuite does, but it does so with proxy injection mode
 * turned on and with the default browser string set so as to use IE.  (ClientDriverSuite normally uses Firefox.)
 * 
 * @author nelsons
 *
 */

public class ClientDriverPISuite extends ClientDriverSuite {
    public static Test suite() {
        System.setProperty("selenium.proxyInjectionMode", "true");
        System.setProperty("selenium.defaultBrowserString", "*piiexplore");
        
        return ClientDriverSuite.suite();
    }
}

@@ -60,16 +60,82 @@
 k.Test;%0D
+%0Aimport org.openqa.selenium.server.browserlaunchers.WindowsUtils;%0D
 %0A%0D%0A/**%0D%0A
@@ -554,24 +554,73 @@
 , %22true%22);%0D%0A
+        if (WindowsUtils.thisIsWindows()) %7B%0D%0A    
         Syst
@@ -692,16 +692,117 @@
         
+%7D else %7B%0D%0A            System.setProperty(%22selenium.defaultBrowserString%22, %22*pifirefox%22);%0D%0A        %7D%0D%0A
 %0D%0A      

use firefox if we're not on windows