Python 3.x 不能使用selenium同时运行多个浏览器

Python 3.x 不能使用selenium同时运行多个浏览器,python-3.x,multithreading,selenium,Python 3.x,Multithreading,Selenium,我正在尝试设置一个程序,该程序需要同时打开25个浏览器(最多,但我甚至无法打开2个)。主要目标是在其他浏览器完成时运行一个浏览器 我以前做过一些项目,但现在它不起作用了,我试过使用ThreadPoolExecutor 导入操作系统 从concurrent.futures导入ThreadPoolExecutor 导入时间 将open(“url.txt”,“r”)作为f: URL=f.read().split(“\n”) q=队列。队列() x=0 executor=ThreadPoolExecut

我正在尝试设置一个程序,该程序需要同时打开25个浏览器(最多,但我甚至无法打开2个)。主要目标是在其他浏览器完成时运行一个浏览器

我以前做过一些项目,但现在它不起作用了,我试过使用ThreadPoolExecutor

导入操作系统
从concurrent.futures导入ThreadPoolExecutor
导入时间
将open(“url.txt”,“r”)作为f:
URL=f.read().split(“\n”)
q=队列。队列()
x=0
executor=ThreadPoolExecutor(len(url))
当x<25时:
submit(os.system(“pythonweb.py-u”+“+url[x]+”))
我希望有25个浏览器,但我不能超过1个,我想在这25个浏览器中的一个完成后启动一个新的浏览器。

也许这会有帮助:也许这会有帮助: