最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - How do I circumvent the delay when loading a browser for the first time with the browser module? - Stack Overflow

programmeradmin1浏览0评论

If there are no browser windows open, opening a new window with multiple tabs will have a delay. The window will open immediately but there will be a 5-10 second delay before the subsequent tabs open. How do I circumvent this?

Edit: I realised that this was only a problem when I register a browser, e.g.

webbrowser.register('Thorium', None, webbrowser.Chrome(path))
Thorium = webbrowser.get('Thorium')

Thorium.open(";)
Thorium.open(";)

Therefore, my actual question is how do I avoid this behaviour when using a registered browser?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论