똑똑해진느낌/Selenium

[Selenium] 암시적(Implicit) 기다림, 명시적(Explicit) 대기

찐쿵 2019. 8. 26. 13:37

암시적 대기는,

WebDriver가 즉시 사용할 수없 는 요소를 찾으려고 할 때 특정 시간 동안 DOM을 가져 오도록 지시하는 것

지정한 시간 동안 기다림.

명시적 대기는,

코드에서 계속 진행하기 전에 특정 조건이 발생할 때까지 대기하도록 정의하는 코드

https://selenium-python.readthedocs.io/waits.html

 

5. Waits — Selenium Python Bindings 2 documentation

5. Waits These days most of the web apps are using AJAX techniques. When a page is loaded by the browser, the elements within that page may load at different time intervals. This makes locating elements difficult: if an element is not yet present in the DO

selenium-python.readthedocs.io