파이썬에서 자동으로 파이어 폭스를 구동하기 위해 셀레늄 webdriver를 사용하고 있습니다. 파이썬 스크립트는 Firefox의 셀레늄 IDE 애드온에서 내보내집니다. 그러나 스크립트를 실행할 때 오류가 발생합니다.WebDriverException : 셀렌 파이썬 스크립트에서 프로필 오류를로드 할 수 없습니다.
======================================================================
ERROR: test_selenium (__main__.SeleniumTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "selenium_test.py", line 8, in setUp
self.driver = webdriver.Firefox()
File "C:\Python26\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 46, in __init__
self.binary, timeout),
File "C:\Python26\lib\site-packages\selenium\webdriver\firefox\extension_connection.py", line 46,
in __init__
self.binary.launch_browser(self.profile)
File "C:\Python26\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 44, in lau
nch_browser
self._wait_until_connectable()
File "C:\Python26\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 87, in _wa
it_until_connectable
raise WebDriverException("Can't load the profile. Profile Dir : %s" % self.profile.path)
WebDriverException: Can't load the profile. Profile Dir : c:\users\ataosky\appdata\local\temp\tmpwpz
zrv
----------------------------------------------------------------------
Ran 1 test in 67.876s
FAILED (errors=1)
WebDriverException : 프로필을로드 할 수 없습니다. 프로필 디렉터리 : c : \ users \ ataosky \ appdata \ local \ temp \ tmpwpz
이 문제가 발생했습니다? 어떻게 해결할 수 있을까요? 미리 감사드립니다.
EDIE : 셀렌 2.5 버전이이 문제를 해결합니다.
우리가 코드를 볼 수있다 (당신은 파이썬의 풍미를 사용하는 경우)? C#에서 비슷한 문제가 발생했지만 코드를 보지 않고서는 아무 것도 말할 수 없습니다. – Anders
+1 - 셀렌 2.9.0과 동일한 문제입니다. 최근 Firefox 8 업그레이드와 관련된 것으로 의심됩니다. – hwjp