首页 新闻 会员 周边

python selenium Gird运行报错Error forwarding the new session Empty pool of VM for setup Capabilities

0
[待解决问题]

昨天运行脚本的时候报错:selenium.common.exceptions.WebDriverException: Message: Error forwarding the new session Empty pool of VM for setup Capabilities {browserName: chrome, javascriptEnabled: true, platfrom: ANY, version: }

昨天百度了说是有版本不兼容的问题,于是我升级了selenium,当时解决了问题,但是今天运行同一个脚本,又出现了这个报错。不应该昨天版本还兼容,今天又不兼容了吧?于是我懵逼了,求大神帮忙解答下

脚本如下:
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver import Remote
from time import sleep

dr = Remote(
command_executor='http://192.168.0.105:4444/wd/hub',
desired_capabilities={
'platfrom':'ANY',
'browserName':'chrome',
'version':'',
'javascriptEnabled':True}
)

dr.get('http://baidu.com')

dr.find_element_by_id('kw').send_keys('hello')
sleep(3)
dr.quit()

黄萝卜和吱吱兔的主页 黄萝卜和吱吱兔 | 菜鸟二级 | 园豆:202
提问于:2018-11-24 18:17
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册