Skip to content

Commit

Permalink
docs: Update README with fixed example (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
kizaski committed Oct 22, 2022
1 parent 7f5cccf commit 2586b38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Playwright is built to automate the broad and growing set of web browser capabil
The following example crawls the current top voted items from [Hacker News](https://news.ycombinator.com).

```go

package main

import (
Expand Down Expand Up @@ -87,7 +88,7 @@ func main() {
log.Fatalf("could not get entries: %v", err)
}
for i, entry := range entries {
titleElement, err := entry.QuerySelector("td.title > a")
titleElement, err := entry.QuerySelector("td.title > span > a")
if err != nil {
log.Fatalf("could not get title element: %v", err)
}
Expand Down

0 comments on commit 2586b38

Please sign in to comment.