@@ -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