Python Selenium 无头线程

问题描述

我有这个 Python Selenium 线程脚本,但如何让它无头运行?

def checkout(browser,url):
  browser.get(url)

browserThread1 = threading.Thread(target = checkout,args = (webdriver.Chrome(),'https://www.google.com'))
browserThread2 = threading.Thread(target = checkout,'https://www.google.com'))
browserThread3 = threading.Thread(target = checkout,'https://www.google.com'))
browserThread4 = threading.Thread(target = checkout,'https://www.google.com'))
browserThread1.start()
browserThread2.start()
browserThread3.start()
browserThread4.start()

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)