7

분명히 오늘 아침에 Firefox를 다른 시스템 업데이트와 함께 업그레이드했는데 셀렌 테스트가 중단되었습니다. 그들은 어제 괜찮 았고 모두 성공했습니다. 연기자를 수행하는 것이 문제인 것처럼 보입니다. 이 내가 가진 오류는 다음과 같습니다Firefox 13에서 셀레늄 테스트가 중단되었습니다

Traceback (most recent call last): 
File "sel.py", line 201, in testAddContent 
hoveredElement.perform() 
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/action_chains.py", line 44, in perform 
action() 
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/action_chains.py", line 201, in <lambda> 
self._driver.execute(Command.MOVE_TO, {'element': to_element.id})) 
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 155, in execute 
self.error_handler.check_response(response) 
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 147, in check_response 
raise exception_class(message, screen, stacktrace) 
InvalidElementStateException: Message: u'Cannot perform native interaction: Could not load native events component.' ; Stacktrace: Method generateErrorForNativeEvents threw an error in file:///tmp/tmpq2yHMn/extensions/[email protected]/components/driver_component.js 
+0

Firefox를 다운 그레이드하거나 셀레늄 업그레이드를 기다려야합니다. 파이어 폭스 어제 AFAIK 나왔다. 내 생각 엔 업데이트 작업을 시작하는 시간을 낭비하지 말고 ... –

+0

정말요? 그것이 유일한 해결책입니까? 흠, 이런 ... 좋아. 고맙습니다. 셀레늄이 곧 업그레이드 될 것입니다. –

+3

Firefox 13이 출시 된 후 하루 만에 모든 사람이 자신의 앱을 검증 할 수는 없습니다. – Arran

답변

14

어제 발표 된 Selenium 2.23이 필요합니다.

+0

감사합니다. 셀레늄을 업그레이드했을 때 셀레늄 2.24가 나왔고 FF13에서 테스트가 잘 진행되었습니다. (실제로 Selenium 2.23을 시도하지 않았 음) –

2

하나의 옵션은 파이어 폭스의 이전 버전에 대해 실행하는 것입니다. 소스 트리에 이전 버전의 firefox를 포함시켜 SizSelCsZzz (https://github.com/fschwiet/SizSelCsZzz/tree/master/browser_archive)를 테스트합니다. C#의 경우 이러한 exe는 다음과 같습니다.

var firefoxProfile = new FirefoxProfile(); 
var browser = new FirefoxDriver(new FirefoxBinary(exePath), firefoxProfile);