Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

渲染有问题 #974

Closed
mumodenan opened this issue Nov 9, 2023 · 2 comments
Closed

渲染有问题 #974

mumodenan opened this issue Nov 9, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@mumodenan
Copy link

Rod Version: v0.114.2

正常curl 可以得到文本数据, 通过渲染反而丢失了

package main

import (
	"fmt"
	"os"
	"time"
	"github.com/go-rod/rod"
)

func main() {
	b := rod.New().ControlURL("ws://127.0.0.1:9222/devtools/browser/6cd8b2a3-ed71-42aa-910b-e554015f772b").MustConnect()
	page := b.MustPage("https://wenku.baidu.com/view/98593fe25ff7ba0d4a7302768e9951e79b896989.html?fr=hp_Database&_wkts_=1699522656597&needWelcomeRecommand=1")
	page = page.MustWaitLoad()
	page.MustScreenshot("a.jpg")
	os.Remove("test.html")
	fd, _ := os.Create("test.html")
	html, _ := page.HTML()
	fd.WriteString(html)
	page.Close()

}
`
@mumodenan mumodenan added the question Questions related to rod label Nov 9, 2023
Copy link

github-actions bot commented Nov 9, 2023

Please add a valid Rod Version: v0.0.0 to your issue. Current version is v0.114.5

Please fix the format of your markdown:

4 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```go"]

generated by check-issue

@ysmood
Copy link
Member

ysmood commented Nov 9, 2023

Duplicated with #973

@ysmood ysmood closed this as not planned Won't fix, can't repro, duplicate, stale Nov 9, 2023
@ysmood ysmood added duplicate This issue or pull request already exists and removed question Questions related to rod labels Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants