プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

env PLAYWRIGHT_RUNNER is not using

Kohei Watanabe (Jul 27, 2020, 8:56 PM +0900) 6a9cf78f 4eac8ace

+2 -6
+1 -3
.github/workflows/playwright-example.yml
··· 25 25 run: sudo apt-get install libwpewebkit-1.0-dev libgstreamer-plugins-bad1.0-0 26 26 - run: node main 27 27 working-directory: ./playwright 28 - env: 29 - PLAYWRIGHT_RUNNER: ${{ matrix.os }} 30 28 - if: success() || failure() 31 29 uses: actions/upload-artifact@v2 32 30 with: 33 - name: screenshots 31 + name: ${{ matrix.os }}-screenshots 34 32 path: ./playwright/screenshots
+1 -3
playwright/main.js
··· 12 12 const page = await context.newPage(); 13 13 await page.goto("http://whatsmyuseragent.org/"); 14 14 await page.screenshot({ 15 - path: `screenshots/${ 16 - process.env.PLAYWRIGHT_RUNNER || "example" 17 - }-${browserType}.png`, 15 + path: `screenshots/${browserType}.png`, 18 16 }); 19 17 await browser.close(); 20 18 }