rod icon indicating copy to clipboard operation
rod copied to clipboard

how to get network log like selenium driver.get_log("performance")?

Open DC3x6 opened this issue 3 years ago • 7 comments

Rod Version: lastest

问题描述

在使用过程中,我尝试像selenium一样get_log(),但我只找到LogLogEntry,但是这个结构体并没有Call方法。

DC3x6 avatar Aug 05 '22 09:08 DC3x6

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

generated by check-issue

rod-robot avatar Aug 05 '22 09:08 rod-robot

FYI https://github.com/go-rod/rod/blob/master/lib/proto/performance_timeline.go

ysmood avatar Aug 05 '22 10:08 ysmood

Could you provide some log samples for us to compare?

ysmood avatar Aug 05 '22 11:08 ysmood

get_log() by python selenium: log log1

in chrome devtools: log3

DC3x6 avatar Aug 05 '22 11:08 DC3x6

Can you try this go run main.go -rod=cdp, main.go is your program.

FYI https://pkg.go.dev/github.com/go-rod/rod/lib/defaults

ysmood avatar Aug 05 '22 11:08 ysmood

chat with discord?

DC3x6 avatar Aug 05 '22 11:08 DC3x6

https://github.com/go-rod/rod/blob/4710d7f82e7892a0699a5cd124d63e55459ad2ae/lib/cdp/example_test.go#L45-L56

ysmood avatar Aug 06 '22 04:08 ysmood

Ask to reopen if it's still not resolved.

ysmood avatar Aug 11 '22 13:08 ysmood

同问,我也想了解下这个问题

dtwangquan avatar Sep 08 '22 06:09 dtwangquan

同问,我也想了解下这个问题

搞定了嘛?

DC3x6 avatar Sep 15 '22 06:09 DC3x6

@DC3x6 你具体需要哪些数据呢,能否给份 selenium 和 rod 的数据对比。描述下 rod 缺了什么数据

ysmood avatar Sep 15 '22 08:09 ysmood