Search

[python, μ…€λ ˆλ‹ˆμ›€] click 였λ₯˜ (Message: element click intercepted)

νƒ€μž…
νŠΈλŸ¬λΈ”μŠˆνŒ…
νƒœκ·Έ
python
selenium
μƒνƒœ
Published
생성일
2022/12/22 06:16
μ΅œμ’… νŽΈμ§‘ μΌμ‹œ
2023/02/24 11:36
2 more properties

μ—λŸ¬μƒν™©

μ…€λ ˆλ‹ˆμ›€μ—μ„œ νŠΉμ • element λ₯Ό click ν•˜λ„λ‘ ν–ˆλŠ”λ°, ν•΄λ‹Ή element κ°€ not clickable ν•˜λ‹€κ³  λœ¨λŠ” μ—λŸ¬μ΄λ‹€.
Message: element click intercepted: ~

μ—λŸ¬μ›μΈ

크둬 μƒμ—μ„œ element κ°€ 아직 clickable ν•˜κ²Œ λ Œλ”λ§λ˜μ§€ μ•Šμ•„μ„œ λœ¨λŠ” 였λ₯˜μ΄λ‹€.

μ—λŸ¬ν•΄κ²°

μ…€λ ˆλ‹ˆμ›€μ˜ EC (Expected Condition) λ₯Ό ν™œμš©ν•˜μ—¬ ν•΄λ‹Ή element κ°€ clickable ν•΄μ§ˆλ•ŒκΉŒμ§€ λͺ…μ‹œμ (explicit)으둜 기닀렀주도둝 ν•œλ‹€.
EC.element_to_be_clickable((By.ID, 'someid') EC.element_to_be_clickable((By.CLASS_NAME, 'some_classname') EC.element_to_be_clickable((By.NAME, 'some_name')
Python
볡사
β€’
μ°Έκ³  : element_to_be_clickable 말고 λ‹€λ₯Έ μ˜΅μ…˜
EC.title_is(...) EC.title_contains(...) EC.presence_of_element_located(...) EC.visibility_of_element_located(...) EC.visibility_of(...) EC.presence_of_all_elements_located(...) EC.text_to_be_present_in_element(...) EC.text_to_be_present_in_element_value(...) EC.frame_to_be_available_and_switch_to_it(...) EC.invisibility_of_element_located(...) EC.element_to_be_clickable(...) EC.staleness_of(...) EC.element_to_be_selected(...) EC.element_located_to_be_selected(...) EC.element_selection_state_to_be(...) EC.element_located_selection_state_to_be(...) EC.alert_is_present(...)
Python
볡사
μ°Έκ³  :