package com.thoughtworks.selenium;

import junit.framework.Test;
import org.openqa.selenium.server.browserlaunchers.WindowsUtils;

/**
 * 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");
        if (WindowsUtils.thisIsWindows()) {
            System.setProperty("selenium.forcedBrowserMode", "*piiexplore");
        } else {
            System.setProperty("selenium.forcedBrowserMode", "*pifirefox");
        }

        return ClientDriverSuite.suite();
    }
}

@@ -554,24 +554,156 @@
 , %22true%22);%0D%0A
+%0D%0A        String forcedBrowserMode = System.getProperty(%22selenium.forcedBrowserMode%22);%0D%0A        if (forcedBrowserMode==null) %7B%0D%0A    
         if (
@@ -731,24 +731,28 @@
 ndows()) %7B%0D%0A
+    
             
@@ -825,16 +825,20 @@
         
+  
+  
 %7D else %7B
@@ -835,24 +835,28 @@
   %7D else %7B%0D%0A
+    
             
@@ -928,19 +928,32 @@
         
-%7D%0D%0A
+    %7D%0D%0A        %7D
 %0D%0A      

support forcedBrowserMode in client driver tests