Skip to content

Commit

Permalink
install playwright task
Browse files Browse the repository at this point in the history
  • Loading branch information
superboss224 committed Jan 7, 2022
1 parent dc6961c commit 63961e0
Show file tree
Hide file tree
Showing 708 changed files with 197,145 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ ports:
onOpen: ignore
- port: 6080
onOpen: open-browser
tasks:
- command: |
npx playwright install-deps
npx playwright install
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const { chromium, firefox, webkit } = require('playwright');

(async () => {
const browser = await chromium.launch({headless: false}); // Or 'firefox' or 'webkit'.
const page = await browser.newPage();
await page.goto('http://example.com');
await page.waitForTimeout(10000);
// other actions...
await browser.close();
})();
1 change: 1 addition & 0 deletions node_modules/.bin/extract-zip

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/playwright

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/rimraf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 63961e0

Please sign in to comment.