csd1206 2016-09-10 05:56 采纳率: 0%
浏览 2363

selenium+python 启动浏览器后无法加载配置文件

代码如下:
author = 'Jessie Lee'
from selenium import webdriver
driver = webdriver.Firefox()
url = "http://www.baidu.com"
driver.get(url)
driver.find_element_by_id("kw").send_keys("selenium2")
driver.find_element_by_id("su").click()
driver.quit()

运行以上代码 启动浏览器后 报错:
selenium.common.exceptions.WebDriverException: Message: Can't load the profile. Profile Dir: c:\users\jessie~1\appdata\local\temp\tmpbdgm61 If you specified a log_file in the FirefoxBinary constructor, check it for details.

浏览器效果如下:
图片说明

求大神帮忙啊 什么原因导致的

python 2.7 版本的 浏览器最新版本

  • 写回答

1条回答 默认 最新

  • devmiao 2016-09-10 15:54
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?