공부환경이 문제인지 알고싶습니다.
515
작성한 질문수 5
Traceback (most recent call last):
File "/Users/jeongho/Documents/section3/tttt.py", line 47, in <module>
a.writeAttendCheck()
File "/Users/jeongho/Documents/section3/tttt.py", line 27, in writeAttendCheck
self.driver.switch_to_frame('cafe_main')
File "/anaconda3/envs/section3/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 775, in switch_to_frame
self._switch_to.frame(frame_reference)
File "/anaconda3/envs/section3/lib/python3.5/site-packages/selenium/webdriver/remote/switch_to.py", line 89, in frame
self._driver.execute(Command.SWITCH_TO_FRAME, {'id': frame_reference})
File "/anaconda3/envs/section3/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/anaconda3/envs/section3/lib/python3.5/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchFrameException: Message: no such frame
(Session info: headless chrome=65.0.3325.181)
(Driver info: chromedriver=2.37.544337 (8c0344a12e552148c185f7d5117db1f28d6c9e85),platform=Mac OS X 10.13.3 x86_64)
[Finished in 3.578s]
'''
네이버 카페 로그인 후 출석체크하기 과정을 하고 완료를 했는데
위와 같이 에러가 나옵니다.
제가 오타나 잘못한게 있어서 선생님의 소스를 실행시켜도 위와 같이 나옵니다.
현재 맥북에서 공부를 하고 있는데요.
이런것도 코딩에 의한 오류인지..아니면 맥북이나 웹드라이버의 문제인지
알수 있을까요??
답변 1
0
네 안녕하세요. 나르샤님
selenium.common.exceptions.NoSuchFrameException: Message: no such frame
해당 오류를 살펴보니 프레임을 찾지 못해서 나오는 에러로 나옵니다.
맥 환경에서 저는 처음보는 에러지만 아래 똑같은 오류내용 처리를 살펴보니
chrome을 쓰지 말고 firefox로 한 번 사용해 보는 것.
- 환경을 처음부터 다시 설정해 보는 것.
이 두가지가 핵심적인 것 같습니다.
아무쪼록 도움이 되시길 바랍니다.
감사합니다.
같은 오류 참조
https://stackoverflow.com/questions/45903714/selenium-nosuchframeexception-for-chrome-extension
현재 예제에서 error 발생
0
367
3
유튜브 동영상 다운로드
0
1448
2
Atom 에디터 관련
0
337
1
위시켓 폼데이터
0
274
1
스케줄러 사용 관련 질문 드립니다
0
627
1
selenium 에러
0
428
1
Progress bar 쓰레드 관련
0
489
1
Install Package 관련 문의
0
328
1
tkinter 샘플 코드 실행 오류 건
0
1267
1
4-7-6 네이버 & 카카오 주식 정보 가져오기
0
381
1
네이버자동로그인_by_selenium
0
876
1
위시캣 로그인 처리 및 크롤링 질문
0
344
1
2-8-1 네이버이미지 크롤링 질문
1
604
3
li:nth-of-type 질문
0
350
2
에러가 뜨는데 잘 모르겠어요ㅠ
0
401
2
Install Packages 항목이 안보이는 이유가 뭘까요?
0
400
2
환경변수 Path 설정 방법
0
631
1
웹 브라우저 없는 스크랩핑 및 파싱 실습(1) - 인프런
0
333
1
웹 브라우저 없는 스크랩핑 및 파싱 실습(1) -git주소
0
475
3
download2-8-1. py질문
0
203
1
ip 차단 당하는 거 같은데 아무리 랜덤주고, sleep 줘도 안 되는데 다른 방법 더 있을까요??
0
645
1
인프런 환경이 바뀌어서 제나름대로 하는데
0
196
1
다시올려주신 예제파일로하는데
0
190
1
아직도 에러가뜨나보네요?
0
584
1





