Commit 58e471d 1 parent 65d443b commit 58e471d Copy full SHA for 58e471d
File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ const { webkit } = require("playwright-webkit");
5
5
6
6
( async ( ) => {
7
7
// const browser = await firefox.launch({ headless: false })
8
- // const browser = await chromium.launch({ headless: false })
9
- const browser = await webkit . launch ( { headless : false } )
8
+ const browser = await chromium . launch ( { headless : false } )
9
+ // const browser = await webkit.launch({ headless: false })
10
10
const context = await browser . newContext ( )
11
11
context . setDefaultTimeout ( 9999999 )
12
- const page = await context . newPage ( )
12
+ const page = await context . newPage ( {
13
+ viewport : {
14
+ height : 2000 ,
15
+ }
16
+ } )
13
17
14
18
await page . goto ( `file:${ path . join ( __dirname , "index.html" ) } ` ) // 2. firefox not resolving page.goto file:
15
19
console . log ( "FIREFOX not outputting this" )
@@ -35,8 +39,8 @@ const { webkit } = require("playwright-webkit");
35
39
width : widthStart ,
36
40
height : 1000 , // 2. chromium and webkit not using the height here
37
41
} ,
38
- // path: "./chromium.png",
39
- path : "./webkit.png" ,
42
+ path : "./chromium.png" ,
43
+ // path: "./webkit.png",
40
44
} )
41
45
console . log ( "FINISH" )
42
46
await browser . close ( )
You can’t perform that action at this time.
0 commit comments