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

通过ctrl+click打开新页面,原页面waitOpen卡住,通过Pages拿到新页面WaitLoad方法不生效 #930

Closed
OneSeven opened this issue Aug 28, 2023 · 3 comments
Labels
question Questions related to rod

Comments

@OneSeven
Copy link

OneSeven commented Aug 28, 2023

Rod Version: v0.114.3

wait := page.MustWaitOpen()
err = page.Keyboard.Press(input.ControlLeft)
if err != nil {
	log.Println(err)
	return
}
el.MustClick()
err = page.Keyboard.Release(input.ControlLeft)
if err != nil {
	log.Println(err)
	return
}
s := wait() //卡住
//pages := browser.Browser().MustPages()
//s=pages[0]
s.MustWaitLoad()  //不适用WaitOpen,调用WatiLoad不生效
log.Println(s.MustInfo().URL, s.MustInfo().Title) //无法获取到信息
@OneSeven OneSeven added the question Questions related to rod label Aug 28, 2023
@ysmood
Copy link
Member

ysmood commented Aug 28, 2023

#322

@ysmood ysmood closed this as completed Aug 28, 2023
@OneSeven
Copy link
Author

@ysmood

@ysmood
Copy link
Member

ysmood commented Aug 28, 2023

ctrl+click 是浏览器 UI 层定义的快捷方式,cdp 不支持的。cdp 控制的非 UI 层的自动化。你可以找 chromium 团队问这个问题,这和 rod 无关。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions related to rod
Projects
None yet
Development

No branches or pull requests

2 participants