我创建了我的Selenium IDE测试,并将测试导出到Python 2 Remote Control。当我运行脚本时,它给了我这个错误:
[root@localhost python]# ./check_selenium.py -s pruebas -w 40 -c 60
SELENIUM UNKNOWN FAIL: not all tests passed -> pruebas | E
======================================================================
ERROR: test (__main__.test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pruebas", line 21, in
sel.send_keys("id=buscador", "3")
AttributeError: 'selenium' object has no attribute 'send_keys'
----------------------------------------------------------------------
Ran 1 test in 59.428s
不能通过遥控器使用按键吗?
这是我的台词:
sel.send_keys("id=buscador", "3")
致谢