【发布时间】:2017-03-08 20:52:26
【问题描述】:
在 Selenium 3.3.0 发布后,我们的一些测试今天开始失败,并出现以下错误:
@property
def location(self):
"""The location of the element in the renderable canvas."""
if self._w3c:
old_loc = self._execute(Command.GET_ELEMENT_RECT)['value']
else:
old_loc = self._execute(Command.GET_ELEMENT_LOCATION)['value']
new_loc = {"x": round(old_loc['x']), "y": round(old_loc['y'])}E TypeError: 'NoneType' 对象不可下标
.tox/py34/lib/python3.4/site-packages/selenium/webdriver/remote/webelement.py:403: TypeError
软件包/软件版本:
- 硒 3.3.0
- pytest-selenium 1.9.1
- geckodriver 0.11.0
问题:
- 除将 selenium 降级为 3.0.2?
- 看起来像一个错误,但我不确定在哪里提交,GeckoDriver 问题跟踪器?
PS:我知道这是一个非常旧的 GeckoDriver 版本,很遗憾,不能更新。
【问题讨论】:
标签: python selenium geckodriver