@@ -77,7 +77,7 @@ public class HTMLLauncher {
7777 * Launches a single HTML Selenium test suite.
7878 *
7979 * @param browser - the browserString ("*firefox", "*iexplore" or an executable path)
80- * @param browserURL - the start URL for the browser
80+ * @param startURL - the start URL for the browser
8181 * @param suiteURL - the relative URL to the HTML suite
8282 * @param outputFile - The file to which we'll output the HTML results
8383 * @param timeoutInSeconds - the amount of time (in seconds) to wait for the browser to finish
@@ -86,7 +86,7 @@ public class HTMLLauncher {
8686 */
8787 public String runHTMLSuite (
8888 String browser ,
89- String browserURL ,
89+ String startURL ,
9090 String suiteURL ,
9191 File outputFile ,
9292 long timeoutInSeconds ,
@@ -107,10 +107,10 @@ public String runHTMLSuite(
107107 WebDriver driver = null ;
108108 try {
109109 driver = createDriver (browser );
110- URL suiteUrl = determineSuiteUrl (browserURL , suiteURL );
110+ URL suiteUrl = determineSuiteUrl (startURL , suiteURL );
111111
112112 driver .get (suiteUrl .toString ());
113- Selenium selenium = new WebDriverBackedSelenium (driver , browserURL );
113+ Selenium selenium = new WebDriverBackedSelenium (driver , startURL );
114114 selenium .setTimeout (String .valueOf (timeoutInMs ));
115115 if (userExtensions != null ) {
116116 selenium .setExtensionJs (userExtensions );
@@ -119,7 +119,7 @@ public String runHTMLSuite(
119119 if (allTables .isEmpty ()) {
120120 throw new RuntimeException ("Unable to find suite table: " + driver .getPageSource ());
121121 }
122- Results results = new CoreTestSuite (suiteUrl .toString ()).run (driver , selenium );
122+ Results results = new CoreTestSuite (suiteUrl .toString ()).run (driver , selenium , new URL ( startURL ) );
123123
124124 HTMLTestResults htmlResults = results .toSuiteResult ();
125125 try (Writer writer = Files .newBufferedWriter (outputFile .toPath ())) {
@@ -143,7 +143,7 @@ public String runHTMLSuite(
143143 }
144144 }
145145
146- private URL determineSuiteUrl (String browserUrl , String suiteURL ) throws IOException {
146+ private URL determineSuiteUrl (String startURL , String suiteURL ) throws IOException {
147147 if (suiteURL .startsWith ("https://" ) || suiteURL .startsWith ("http://" )) {
148148 return verifySuiteUrl (new URL (suiteURL ));
149149 }
@@ -184,7 +184,7 @@ private URL determineSuiteUrl(String browserUrl, String suiteURL) throws IOExcep
184184 }
185185
186186 // Well then, it must be a URL relative to whatever the browserUrl. Probe and find out.
187- URL browser = new URL (browserUrl );
187+ URL browser = new URL (startURL );
188188 return verifySuiteUrl (new URL (browser , suiteURL ));
189189 }
190190
0 commit comments