Skip to content

Commit 85b0560

Browse files
committed
make HtmlUnitDriver.getWebClient() and HtmlUnitDriver.getCurrentWindow() public
1 parent 1098a99 commit 85b0560

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/openqa/selenium/htmlunit/HtmlUnitDriver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,14 +1712,14 @@ protected <X> X implicitlyWaitFor(Callable<X> condition) {
17121712
return null;
17131713
}
17141714

1715-
protected WebClient getWebClient() {
1715+
public WebClient getWebClient() {
17161716
if (webClient == null) {
17171717
throw new NoSuchSessionException("Session is closed");
17181718
}
17191719
return webClient;
17201720
}
17211721

1722-
protected WebWindow getCurrentWindow() {
1722+
public WebWindow getCurrentWindow() {
17231723
if (currentWindow == null || currentWindow.isClosed()) {
17241724
throw new NoSuchWindowException("Window is closed");
17251725
}

0 commit comments

Comments
 (0)