Skip to content

Commit 9f941f9

Browse files
committed
fix compilation
1 parent ff6368b commit 9f941f9

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

playwright/src/main/java/com/microsoft/playwright/impl/FrameImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ private Response waitForNavigationImpl(Logger logger, Runnable code, WaitForNavi
10611061

10621062
List<Waitable<Response>> waitables = new ArrayList<>();
10631063
if (matcher == null) {
1064-
matcher = UrlMatcher.forOneOf(page.context().baseUrl, options.url, this.connection.localUtils, false);
1064+
matcher = UrlMatcher.forOneOf(page.context().baseUrl(), options.url, this.connection.localUtils, false);
10651065
}
10661066
logger.log("waiting for navigation " + matcher);
10671067
waitables.add(new WaitForNavigationHelper(matcher, options.waitUntil, logger));
@@ -1109,7 +1109,7 @@ void waitForTimeoutImpl(double timeout) {
11091109

11101110
@Override
11111111
public void waitForURL(String url, WaitForURLOptions options) {
1112-
waitForURL(UrlMatcher.forGlob(page.context().baseUrl, url, this.connection.localUtils, false), options);
1112+
waitForURL(UrlMatcher.forGlob(page.context().baseUrl(), url, this.connection.localUtils, false), options);
11131113
}
11141114

11151115
@Override

playwright/src/main/java/com/microsoft/playwright/impl/PageAssertionsImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public void hasTitle(Pattern pattern, HasTitleOptions options) {
5353
@Override
5454
public void hasURL(String url, HasURLOptions options) {
5555
ExpectedTextValue expected = new ExpectedTextValue();
56-
if (actualPage.context().baseUrl != null) {
57-
url = resolveUrl(actualPage.context().baseUrl, url);
56+
if (actualPage.context().baseUrl() != null) {
57+
url = resolveUrl(actualPage.context().baseUrl(), url);
5858
}
5959
expected.string = url;
6060
expected.ignoreCase = shouldIgnoreCase(options);

playwright/src/main/java/com/microsoft/playwright/impl/PageImpl.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ public Frame frame(String name) {
785785

786786
@Override
787787
public Frame frameByUrl(String glob) {
788-
return frameFor(UrlMatcher.forGlob(browserContext.baseUrl, glob, this.connection.localUtils, false));
788+
return frameFor(UrlMatcher.forGlob(browserContext.baseUrl(), glob, this.connection.localUtils, false));
789789
}
790790

791791
@Override
@@ -1108,7 +1108,7 @@ private Response reloadImpl(ReloadOptions options) {
11081108

11091109
@Override
11101110
public void route(String url, Consumer<Route> handler, RouteOptions options) {
1111-
route(UrlMatcher.forGlob(browserContext.baseUrl, url, this.connection.localUtils, false), handler, options);
1111+
route(UrlMatcher.forGlob(browserContext.baseUrl(), url, this.connection.localUtils, false), handler, options);
11121112
}
11131113

11141114
@Override
@@ -1130,7 +1130,7 @@ public void routeFromHAR(Path har, RouteFromHAROptions options) {
11301130
browserContext.recordIntoHar(this, har, convertType(options, BrowserContext.RouteFromHAROptions.class), null);
11311131
return;
11321132
}
1133-
UrlMatcher matcher = UrlMatcher.forOneOf(browserContext.baseUrl, options.url, this.connection.localUtils, false);
1133+
UrlMatcher matcher = UrlMatcher.forOneOf(browserContext.baseUrl(), options.url, this.connection.localUtils, false);
11341134
HARRouter harRouter = new HARRouter(connection.localUtils, har, options.notFound);
11351135
onClose(context -> harRouter.dispose());
11361136
route(matcher, route -> harRouter.handle(route), null);
@@ -1145,7 +1145,7 @@ private void route(UrlMatcher matcher, Consumer<Route> handler, RouteOptions opt
11451145

11461146
@Override
11471147
public void routeWebSocket(String url, Consumer<WebSocketRoute> handler) {
1148-
routeWebSocketImpl(UrlMatcher.forGlob(browserContext.baseUrl, url, this.connection.localUtils, true), handler);
1148+
routeWebSocketImpl(UrlMatcher.forGlob(browserContext.baseUrl(), url, this.connection.localUtils, true), handler);
11491149
}
11501150

11511151
@Override
@@ -1363,7 +1363,7 @@ public void unrouteAll() {
13631363

13641364
@Override
13651365
public void unroute(String url, Consumer<Route> handler) {
1366-
unroute(UrlMatcher.forGlob(browserContext.baseUrl, url, this.connection.localUtils, false), handler);
1366+
unroute(UrlMatcher.forGlob(browserContext.baseUrl(), url, this.connection.localUtils, false), handler);
13671367
}
13681368

13691369
@Override
@@ -1409,7 +1409,7 @@ public VideoImpl video() {
14091409
// Note: we are creating Video object lazily, because we do not know
14101410
// BrowserContextOptions when constructing the page - it is assigned
14111411
// too late during launchPersistentContext.
1412-
if (browserContext.videosDir == null) {
1412+
if (browserContext.videosDir() == null) {
14131413
return null;
14141414
}
14151415
return forceVideo();
@@ -1506,7 +1506,7 @@ public T get() {
15061506

15071507
@Override
15081508
public Request waitForRequest(String urlGlob, WaitForRequestOptions options, Runnable code) {
1509-
return waitForRequest(UrlMatcher.forGlob(browserContext.baseUrl, urlGlob, this.connection.localUtils, false), null, options, code);
1509+
return waitForRequest(UrlMatcher.forGlob(browserContext.baseUrl(), urlGlob, this.connection.localUtils, false), null, options, code);
15101510
}
15111511

15121512
@Override
@@ -1551,7 +1551,7 @@ private Request waitForRequestFinishedImpl(WaitForRequestFinishedOptions options
15511551

15521552
@Override
15531553
public Response waitForResponse(String urlGlob, WaitForResponseOptions options, Runnable code) {
1554-
return waitForResponse(UrlMatcher.forGlob(browserContext.baseUrl, urlGlob, this.connection.localUtils, false), null, options, code);
1554+
return waitForResponse(UrlMatcher.forGlob(browserContext.baseUrl(), urlGlob, this.connection.localUtils, false), null, options, code);
15551555
}
15561556

15571557
@Override
@@ -1604,7 +1604,7 @@ public void waitForTimeout(double timeout) {
16041604

16051605
@Override
16061606
public void waitForURL(String url, WaitForURLOptions options) {
1607-
waitForURL(UrlMatcher.forGlob(browserContext.baseUrl, url, this.connection.localUtils, false), options);
1607+
waitForURL(UrlMatcher.forGlob(browserContext.baseUrl(), url, this.connection.localUtils, false), options);
16081608
}
16091609

16101610
@Override

0 commit comments

Comments
 (0)