selenium3+python2.7启动Firefox53提示:KeyError: 'sessionId'
2017-05-23 08:37
721 查看
selenium3+python2.7启动Firefox53
代码如下:
# -*- coding: utf-8 -*-
from selenium import webdriver
import time
def get_url():
driver = webdriver.Firefox()
driver.get('http://www.baidu.com')
time.sleep(1)
return driver
运行提示:KeyError: 'sessionId'
解决方法:
更新 selenium版本:pip install -U selenium
代码如下:
# -*- coding: utf-8 -*-
from selenium import webdriver
import time
def get_url():
driver = webdriver.Firefox()
driver.get('http://www.baidu.com')
time.sleep(1)
return driver
运行提示:KeyError: 'sessionId'
解决方法:
更新 selenium版本:pip install -U selenium
相关文章推荐
- selenium3+python2.7启动Firefox 53提示:socket.error: [Errno 10054]
- 关于python3.5-32 pyinstaller 启动时提示"ImportError: No system module 'pywintypes' (pywintypes35.dll)的解决方法"
- Python Selenium 启动新版本Firefox失败问题解决方案
- 使用python的subprocess启动windows程序提示WindowsError: [Error 6] The handle is invalid
- Python+Selenium,使用WebDriver启动Firefox,但不打开URL
- python3 Selenium启动加载用户配置的浏览器(Chrome/Firefox)
- Python Selenium 启动新版本Firefox失败问题解决方案
- Selenium python 启动firefox浏览器的异常selenium.common.exceptions.WebDriverException: Message: 'geckodriver'
- selenium_python系列之二 Python启动浏览器Firefox\Chrome\IE
- 用python做自动化测试--web 自动化测试(2)-Selenium 3.x启动IE, Firefox,Chrome代码示例
- python+selenium启动firefox和chrome
- python selenium启动不了火狐浏览器(firefox)的解决办法
- python selenium3启动不了firefox的解决办法
- Python Selenium 启动新版本Firefox失败问题解决方案
- python读取mat数据后转格式提示“KeyError: 0”
- mac下更新pip时提示OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip-8.0.2-py2.
- 去掉selenium启动firefox每次都会弹出导入系统收藏夹提示框的方法
- 解决python selenium3启动不了firefox的问题
- 使用Gevent程序正常运行出现这个异常KeyError(155880780,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored解决办法
- python 2.7.x 在windows10终端中提示LookupError: unknown encoding: cp65001