|
| 1 | +--- |
| 2 | +name: "Bug report \U0001FAB2" |
| 3 | +about: Create a bug report to help us improve |
| 4 | +title: "[Bug]: " |
| 5 | +labels: p2-bug |
| 6 | +assignees: '' |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +<!-- |
| 11 | +Before posting a bug report, please make sure it is a software defect related to "playwright-go"(or playwright). |
| 12 | +
|
| 13 | +The issue tracker is not a help forum. Consider asking for help on for example: |
| 14 | +- [Github Discussions](/playwright-community/playwright-go/discussions) |
| 15 | +- upstream [Playwright Discord channel](https://aka.ms/playwright/discord) |
| 16 | +--> |
| 17 | +**Environments** |
| 18 | +<!--pls always use latest since playwright-go still `v0.x`--> |
| 19 | +- playwright-go Version: [e.g. v0.4201.1] |
| 20 | +- Browser: [e.g. firefox] |
| 21 | +- OS and version: [e.g. macOS / Windows 11/ Ubuntu 22.04] |
| 22 | + |
| 23 | +**Bug description** |
| 24 | +<!-- A clear and concise description of what the bug is. Describe the expected bahavior |
| 25 | + and how it is currently different.--> |
| 26 | + |
| 27 | +**To Reproduce** |
| 28 | +Please provide a mini reproduction rather than just a description. For example: |
| 29 | + |
| 30 | +```go |
| 31 | +package main |
| 32 | + |
| 33 | +import "github.com/playwright-community/playwright-go" |
| 34 | + |
| 35 | +func main() { |
| 36 | + // ignore unnecessary error handling code |
| 37 | + pw, _ := playwright.Run() |
| 38 | + browser, _ := pw.Chromium.Launch() |
| 39 | + context, _ := browser.NewContext() |
| 40 | + page, _ := context.NewPage() |
| 41 | + |
| 42 | + _, _ = page.Goto("https://playwright.dev") |
| 43 | + |
| 44 | + _, err := page.PDF(playwright.PagePdfOptions{ |
| 45 | + Path: playwright.String("playwright-example.pdf"), |
| 46 | + }) |
| 47 | + // should no error |
| 48 | + if err != nil { |
| 49 | + panic(err) |
| 50 | + } |
| 51 | +} |
| 52 | + |
| 53 | +``` |
| 54 | + |
| 55 | +**Additional context** |
| 56 | +Add any other context about the problem here. |
0 commit comments