Skip to content

Commit bb07a48

Browse files
committed
Better error message in tests about how to select a browser to use.
Does not change production code.
1 parent af42bc0 commit bb07a48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/client/test/org/openqa/selenium/testing/drivers/TestIgnorance.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ private boolean isIgnoredDueToEnvironmentVariables(Description method) {
167167
}
168168

169169
public void setBrowser(Browser browser) {
170-
this.browser = checkNotNull(browser, "Browser to use must be set");
170+
this.browser = checkNotNull(
171+
browser,
172+
"Browser to use must be set. Do this by setting the 'selenium.browser' system property");
171173
addIgnoresForBrowser(browser, ignoreComparator);
172174
}
173175

0 commit comments

Comments
 (0)