Skip to content

raise TimeoutException(message, screen, stacktrace)  selenium.common.exceptions.TimeoutException: Message:

파이썬 셀레니움에서의 오류


이 에러는

"driver.find_element(By.CSS_SELECTOR,'#player-container').click()"

코드에서 발생한 것 같습니다.

 

이 코드가 실행될 때,

클릭하려는 요소가 로딩되지 않아서 클릭이 실패한 것으로 보입니다.

 

이 경우에는 클릭 가능할 때까지

기다리도록 WebDriverWait를 사용해 볼 수 있습니다.

 


 

 

 WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "//div[@role='menuitemradio' and @title='1080p']")))

  File "C:\python\lib\site-packages\selenium\webdriver\support\wait.py", line 95, in 

until

    raise TimeoutException(message, screen, stacktrace)

selenium.common.exceptions.TimeoutException: Message:

Stacktrace:

Backtrace:

        GetHandleVerifier [0x009FDCE3+50899]

        (No symbol) [0x0098E111]

        (No symbol) [0x00895588]

        (No symbol) [0x008C08F9]

        (No symbol) [0x008C0AFB]

        (No symbol) [0x008EF902]

        (No symbol) [0x008DB944]

        (No symbol) [0x008EE01C]

        (No symbol) [0x008DB6F6]

        (No symbol) [0x008B7708]

        (No symbol) [0x008B886D]

        GetHandleVerifier [0x00C63EAE+2566302]

        GetHandleVerifier [0x00C992B1+2784417]

        GetHandleVerifier [0x00C9327C+2759788]

        GetHandleVerifier [0x00A95740+672048]

        (No symbol) [0x00998872]

        (No symbol) [0x009941C8]

        (No symbol) [0x009942AB]

        RtlGetAppContainerNamedObjectPath [0x77277B6E+286]

        RtlGetAppContainerNamedObjectPath [0x77277B3E+238]

 

PS C:\Users\Administrator> & c:/python/python.exe c:/Python/py_code/automouse/test1.py

 

DevTools listening on ws://127.0.0.1:57515/devtools/browser/f6cda07d-be67-4154-9419-fe8f3a7ecfdb

 

DevTools listening on ws://127.0.0.1:57526/devtools/browser/6364ed95-3b0f-4e11-a882-001ca0a00a07

Traceback (most recent call last):

  File "c:\Python\py_code\automouse\test1.py", line 49, in <module>

    WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "//div[@role='menuitemradio' and @title='1080p']")))

  File "C:\python\lib\site-packages\selenium\webdriver\support\wait.py", line 95, in 

until

    raise TimeoutException(message, screen, stacktrace)

selenium.common.exceptions.TimeoutException: Message:

Stacktrace:

Backtrace:

        GetHandleVerifier [0x009FDCE3+50899]

        (No symbol) [0x0098E111]

        (No symbol) [0x00895588]

        (No symbol) [0x008C08F9]

        (No symbol) [0x008C0AFB]

        (No symbol) [0x008EF902]

        (No symbol) [0x008DB944]

        (No symbol) [0x008EE01C]

        (No symbol) [0x008DB6F6]

        (No symbol) [0x008B7708]

        (No symbol) [0x008B886D]

        GetHandleVerifier [0x00C63EAE+2566302]

        GetHandleVerifier [0x00C992B1+2784417]

        GetHandleVerifier [0x00C9327C+2759788]

        GetHandleVerifier [0x00A95740+672048]

        (No symbol) [0x00998872]

        (No symbol) [0x009941C8]

        (No symbol) [0x009942AB]

        (No symbol) [0x009871B7]

        BaseThreadInitThunk [0x75130099+25]

        RtlGetAppContainerNamedObjectPath [0x77277B6E+286]

        RtlGetAppContainerNamedObjectPath [0x77277B3E+238]

 

PS C:\Users\Administrator> 

 

 

 

 

로그인 후 댓글쓰기가 가능합니다.

?

List of Articles
번호 분류 제목 날짜 조회 수
303 재미재미 (쇼킹한 음료광고)Thailand funny slimming greentea commercial 1 2 2012.08.25 5554
302 회로도전자부품 1석 오디오 회로도 file 2014.01.14 7277
301 AVR 2k fm 2014.12.15 5174
300 컴퓨터잡담 50 개 이상의 Ajax 예제들 2 2010.03.29 18950
299 컴퓨터잡담 50 개 이상의 Ajax 예제들 2010.03.29 18179
298 회로도전자부품 555 TIMER AM TRANSMITTER CIRCUIT(AM 송신 회로) 2015.12.01 3692
297 AVR 555 TIMER AM TRANSMITTER CIRCUIT(AM 송신 회로) file 2014.09.20 23302
296 컴퓨터잡담 Ahk Standard Library Collection, 2010 Sep (+Gui) ~ Libs: 100 3 2011.10.11 14190
295 AutoHotKey ahk) autohotkey controlgettext 이름을 마우스커서에 졸졸 따라다니게 하기 file 2014.04.01 12232
294 AutoHotKey Ahk) ip할당 진단프로그램 file 2011.12.26 12122
293 AutoHotKey Ahk) 웹페이지 감시결과에 따라 마이피플로 글 전송하기 12 file 2013.01.06 44025
292 AutoHotKey ahk_l 과 com 의 이해 2011.02.22 17486
291 AutoHotKey AHK_L 예제소스 1 2011.02.10 17018
290 AutoHotKey AHK에서 가능한 COM 인터넷 익스플로러 및 GUI 브라우저 1 2011.02.11 19502
289 회로도전자부품 AM FM one transistor am transmitter & Reciver 1 2014.03.04 8962
288 Server Apache에 대한 mod_proxy 지원 구성 2016.09.06 1801
287 회로도전자부품 Arduino Frequency Counter Library file 2014.01.20 30869
286 컴퓨터잡담 ARP(mac spoofing) 바이러스 내용 스크랩 3 file 2012.10.19 6438
285 AutoHotKey Autohotkey + mypeople(마이피플) 메시지 전송 1 2013.03.12 15433
284 컴퓨터잡담 autohotkey - 변수리스트(Variables and Expressions) 모음 2011.09.30 11830
Board Pagination Prev 1 2 3 4 5 ... 16 Next
/ 16

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소