작성
·
370
답변 1
0
implicity_wait가 맞습니다 !
Selenium의 Waiting에는 크게 2가지 방법이 있습니다
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Chrome()
driver.get("https://naver.com")
try:
#1. implicity_wait
driver.implicitly_wait(10)
#2. WebDriverWait
element = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.ID, "어떤_Tag_ID"))
)