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

sync chrome.new_tab() 创建不了新页面,返回都是none #139

Open
zenghh opened this issue Sep 23, 2023 · 9 comments
Open

sync chrome.new_tab() 创建不了新页面,返回都是none #139

zenghh opened this issue Sep 23, 2023 · 9 comments

Comments

@zenghh
Copy link

zenghh commented Sep 23, 2023

INFO 2023-09-23 13:48:35 [ichrome] test.py(47): ChromeDaemon(127.0.0.1:9222) Traceback (most recent call last): File "d:\source\server\p01\test.py", line 120, in <module> test_example() File "d:\source\server\p01\test.py", line 54, in test_example tab._default_recv_callback.append(lambda tab, data: test_cache.append(data))AttributeError: 'NoneType' object has no attribute '_default_recv_callback'
运行的测试代码 chrome117版本

@ClericPy
Copy link
Owner

同步版本已经不维护了, 放弃吧... 试试 playwright

@zenghh
Copy link
Author

zenghh commented Sep 23, 2023

playwright 被检测到,只有你的可以运行,能否同步修改下

@ClericPy
Copy link
Owner

印象中这个问题是 chrome 新版本改了 HTTP 接口还是什么原因. 节后看下吧, 这段时间比较忙, 这项目也很久没碰了

@zenghh
Copy link
Author

zenghh commented Sep 23, 2023

#123
跟这异步的一样

@ClericPy
Copy link
Owner

OK, 我抽个时间加个判断. 挺服的, 不向后兼容, 遇到老版本还得用 get, 不知道他们团队怎么想的

@zenghh
Copy link
Author

zenghh commented Sep 23, 2023

谢谢

@ClericPy
Copy link
Owner

我也得谢谢, 你不说我都忘了这bug了, Github和 pypi 老搞二步认证, 弄得好久不提代码了

@ClericPy
Copy link
Owner

ClericPy commented Sep 24, 2023

改了 PUT 方法, 结果 Websocket 握手失败 403 了, 我试试能不能修, 修不了就删掉 sync 用法了, 然后用自动事件循环把异步方法都包成同步的做个适配器算了.
很久不维护, debugger 功能里自动事件循环也不好用了, 测试脚本用的 bing 不稳定也调了半天

@zenghh
Copy link
Author

zenghh commented Sep 25, 2023

谢谢

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

No branches or pull requests

2 participants