python - selenium server 为什么会有geckodriver.exe错误
怪我咯
怪我咯 2017-04-18 10:30:41
0
0
577
from selenium.webdriver import Remote
import time
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
driver = Remote(command_executor='http://127.0.0.1:4444/wd/hub',
desired_capabilities={'platform': 'ANY',
                      'browserName':'firefox',
                      'version': '',
                      'javascriptEnabled': True})
driver.get('http://www.baidu.com')
title=driver.title
print (title)
time.sleep(3)
driver.quit()

我是这样写的

但在selenium server 出现错误:

编译器里也是同样的错误:

这是什么原因?

geckodriver.exe我也放到firefox目录了

怪我咯
怪我咯

走同样的路,发现不同的人生

répondre à tous(0)
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!