나는 셀레늄과 파이썬을 처음 접했습니다.셀레늄의 파이썬 스크립트
내가 셀레늄 IDE에서 스크립트를 보낸 나는 파이썬의 스크립트를 실행하려고 할 때 나는
EException AttributeError: "'Service' object has no attribute 'log_file'" in <bo
und method Service.__del__ of <selenium.webdriver.firefox.service.Service object
at 0x0000000002AA4550>> ignored
======================================================================
ERROR: test_sharepoint_python (__main__.SharepointPython)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\scripts\sharepoint python1.py", line 12, in setUp
self.driver = webdriver.Firefox()
File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py",
line 139, in __init__
self.service = Service(executable_path, log_path=log_path)
File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\service.py", li
ne 45, in __init__
log_file = open(log_path, "a+")
IOError: [Errno 13] Permission denied: 'geckodriver.log'
----------------------------------------------------------------------
Ran 1 test in 0.030s
FAILED (errors=1)
내가이 문제를 해결할 수있는 방법 나를 인도 해주십시오, 아래와 같은 오류가 발생하고있다. geckodriver의 경로를 업데이트하는 다른 게시물을 보았습니다. 문제가 해결되면 cani가 geckodriver를 어디에서 찾을 수 있는지 알려주세요. 하지만 난 어디 geckodriver.log 다운로드 geckodriver를 설치하지만, EXE는
[허가가 거부되었습니다 : python에서 selenium webdriver를 실행하는 동안 'geckodriver.log'] 가능한 복제본 (http://stackoverflow.com/questions/40466809/permission-denied-geckodriver-log-while-running-selenium-webdriver -in-python) – Andersson