μλ¬ μν©
μ
λ λμμμ νΉμ element λ₯Ό ν΄λ¦ν΄μΌ νλ μν©μ΄λ€.
name = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable(
(By.CSS_SELECTOR, "span.place_bluelink")
)
)
name.click()
Python
볡μ¬
span.place_bluelink element λ₯Ό clickable ν λκΉμ§ explicit νκ² κΈ°λ€λ¦¬λλ‘ νλλ°λ click μ΄ λμ§ μμλ€.
μλμ μλ¬ λ¬Έκ΅¬κ° μΆλ ₯λλ€
Message: element not interactable
μλ¬ ν΄κ²°
ꡬκΈλ§μ ν΄λ³΄λ λ κ°μ§ μ λμ ν΄κ²°λ°©λ²μ΄ μμλ€.
ν΄κ²°λ²1
click() λμ Keys.ENTER λ₯Ό μ¬μ©νλ€.
from selenium.webdriver.common.keys import Keys
name = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable(
(By.CSS_SELECTOR, "span.place_bluelink")
)
)
name.send_keys(Keys.ENTER)
Python
볡μ¬
νμ§λ§ λ κ°μ κ²½μ° μ λ°©λ²μΌλ‘λ ν΄κ²°λμ§ μμλ€.
ν΄κ²°λ²2
js scrpit λ₯Ό μ¬μ©νλ€.
name = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable(
(By.CSS_SELECTOR, "span.place_bluelink")
)
)
driver.execute_script("arguments[0].click();", name)
Python
볡μ¬
μ΄ λ°©λ²μΌλ‘ ν΄κ²°νλ€.
μ°Έκ³ :