Python硒"about:blank& utm_content = firstrun"错误 [英] Python selenium "about:blank&utm_content=firstrun" error

查看:108
本文介绍了Python硒"about:blank& utm_content = firstrun"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力弄清楚我的代码是怎么回事,但我无能为力. 每当我运行程序时,都会在以下图片中出现此错误. 我正在使用python 3.4.4和它的硒最新版本.

Windows 10

I've being trying so hard to figure out what's going on with my code, but I couldn't help. Whenever I run my program I got this error in the picture bellow. I'm using python 3.4.4 and selenium last version of it.

Windows 10

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
elem.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)
assert "No results found." not in driver.page_source
driver.close()

错误图片

推荐答案

您没有提到您的FF版本,我认为它是最新版本.无论如何,您都需要使用47以下的FF或时间切换到MarionetteDriver

You didn't mention what your FF version is, I assume it's one of the latest. Anyways you need to use FF below 47 or time to switch to MarionetteDriver

这是一些有用的信息 Selenium 2.53在Firefox 47上不起作用

希望它会有所帮助,欢呼.

Hope it helps, cheers.

这篇关于Python硒"about:blank& utm_content = firstrun"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆