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

如何在过程中控制浏览器显示或者隐藏 #835

Closed
zk3151463 opened this issue Mar 20, 2023 · 8 comments
Closed

如何在过程中控制浏览器显示或者隐藏 #835

zk3151463 opened this issue Mar 20, 2023 · 8 comments
Labels
duplicate This issue or pull request already exists enhance New feature or request

Comments

@zk3151463
Copy link

在实际操作过程中有一些验证码比较麻烦实际上可以让人工操作,这时候就适合显示浏览器,让人工控制显示,操作后又可以使浏览器隐藏

@zk3151463 zk3151463 added the enhance New feature or request label Mar 20, 2023
@rod-robot
Copy link

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

generated by check-issue

@ysmood
Copy link
Collaborator

ysmood commented Mar 20, 2023

cdp 无法在启动浏览器后更改 headless 模式。

目前只能在 headful 模式下使用类似 MustWindowMinimize 方法来做自动化

要完美解决,需要等这个 issue 被解决:

#85

@ysmood ysmood added the duplicate This issue or pull request already exists label Mar 20, 2023
@zk3151463
Copy link
Author

目前只能在 headful 模式下使用类似 MustWindowMinimize 方法来做自动化

您说的这个方案有demo么,可以给你一个案例吗?还有这个包可以操作electron吗

@ysmood
Copy link
Collaborator

ysmood commented Mar 20, 2023

https://go-rod.github.io/i18n/zh-CN/#/get-started/README

这里就提到了 MustWindowFullscreen,用法类似,请举一反三

@ysmood ysmood closed this as completed Mar 20, 2023
@zk3151463
Copy link
Author

这个方法我刚试了,感觉不太实用,我希望隐藏后用户看不到

@zk3151463
Copy link
Author

还有这个可以操作electron吗

@ysmood
Copy link
Collaborator

ysmood commented Mar 20, 2023

这个方法我刚试了,感觉不太实用,我希望隐藏后用户看不到

那你可以去找 chromium 官方团队提 issue,找 rod 也没用。

还有这个可以操作electron吗

#423

@zk3151463
Copy link
Author

哪这个目前那个方法是保持浏览器一直运行状态,可以随时操作页面,

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 enhance New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants