Python - 启动多个ChromeDriver实例

时间:2017-11-20 04:51:31

标签: python selenium-webdriver selenium-chromedriver

有没有办法同时启动多个ChromeDriver实例,而不是明确地调用它们,即

driver = webdriver.Chrome('chromedriver.exe')
driver1 = webdriver.Chrome('chromedriver.exe')
driver2 = webdriver.Chrome('chromedriver.exe')
driver3 = webdriver.Chrome('chromedriver.exe')
driver4 = webdriver.Chrome('chromedriver.exe')

for循环启动一个,然后只有当前一个关闭时才启动另一个..

0 个答案:

没有答案