Better error message in tests about how to select a browser to use.
Does not change production code.
@@ -167,7 +167,9 @@ private boolean isIgnoredDueToEnvironmentVariables(Description method) {
}
public void setBrowser(Browser browser) {
- this.browser = checkNotNull(browser, "Browser to use must be set");
+ this.browser = checkNotNull(
+ browser,
+ "Browser to use must be set. Do this by setting the 'selenium.browser' system property");
addIgnoresForBrowser(browser, ignoreComparator);
}
