File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
main/java/com/microsoft/playwright/impl
test/java/com/microsoft/playwright Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,10 @@ enum EventType {
104104 clock = new ClockImpl (this );
105105 closePromise = new WaitableEvent <>(listeners , EventType .CLOSE );
106106
107- String url = initializer .getAsJsonObject ("options" ).get ("baseUrl" ). getAsString ( );
107+ JsonElement url = initializer .getAsJsonObject ("options" ).get ("baseUrl" );
108108 if (url != null ) {
109109 try {
110- this .baseUrl = new URL (url );
110+ this .baseUrl = new URL (url . getAsString () );
111111 } catch (MalformedURLException e ) {
112112 }
113113 }
Original file line number Diff line number Diff line change 2929import static com .microsoft .playwright .options .Media .PRINT ;
3030import static com .microsoft .playwright .Utils .attachFrame ;
3131import static org .junit .jupiter .api .Assertions .assertEquals ;
32- import static org .junit .jupiter .api .Assertions .assertTrue ;
3332
3433public class TestPageEmulateMedia extends TestBase {
3534 @ Test
You can’t perform that action at this time.
0 commit comments