【发布时间】:2017-02-28 12:04:16
【问题描述】:
Using Python to start a browser (Chromium) and change the url
链接的问题是问我想要什么,但我不知道如何实现仅使用 Selenium 的答案。
我只需要在 kiosk 模式下加载 chromium 并加载我使用 os.system('chromium-browser --kiosk file://.....') 执行此操作的本地 html 页面,但这每次都会加载一个新窗口/标签,因此效率不高或速度不快
【问题讨论】:
-
您链接到的问题使用来自the
subprocessmodule 的Popen。这使您可以与进程通信并终止它。 -
你的意思是这行 browser = Popen(["chromium", "google.com"]) 因为对他没用。我不是每次都需要启动一个新窗口显示一个页面,我只是重新加载视图。:)
标签: python raspberry-pi