mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: update GitHub issue template (#12752)
This commit is contained in:
parent
08c29b305b
commit
b364efca38
15
.github/ISSUE_TEMPLATE/bug.md
vendored
15
.github/ISSUE_TEMPLATE/bug.md
vendored
@ -27,7 +27,20 @@ const {chromium, webkit, firefox} = require('playwright');
|
||||
|
||||
(async () => {
|
||||
const browser = await chromium.launch();
|
||||
// ...
|
||||
const context = await browser.newContext();
|
||||
const page = await context.newPage();
|
||||
|
||||
// Please include a snippet of HTML that shows an example of the content
|
||||
// you are testing.
|
||||
await page.setContent(`
|
||||
<div>
|
||||
…
|
||||
</div>
|
||||
`);
|
||||
// Alternatively, if you are testing a public application, include the URL:
|
||||
// await page.goto('https://example.com/')
|
||||
|
||||
await page.locator(…);
|
||||
})();
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user