๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • Tried. Failed. Logged.
๐Ÿ‘จ๐Ÿผโ€๐Ÿ’ป๊ฐœ๋ฐœ/์…€๋ ˆ๋‹ˆ์›€

์…€๋ ˆ๋‹ˆ์›€ - Element is not clickable at point ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

by Janger 2022. 8. 31.
728x90
์›์ธ

๋ธŒ๋ผ์šฐ์ €๊ฐ€ ํด๋ฆญํ•ด์•ผ ํ•˜๋Š” ์›์†Œ๋ฅผ ๋ณด์ด์ง€ ์•Š๋Š” ๊ณณ์— ์žˆ๊ธฐ ๋•Œ๋ฌธ์—(์Šคํฌ๋กค์ด ๊ธธ๋‹ค๋˜๊ฐ€ ๋“ฑ) ๋ฐœ์ƒํ•˜๋Š” ์›์ธ

 

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•
from selenium.webdriver.common.action_chains import ActionChains

element = driver.find_element_by_id("my-id")

actions = ActionChains(driver)
actions.move_to_element(element).perform()
# actions.move_to_element(element).click().perform() # Click

๋ธŒ๋ผ์šฐ์ €๋ฅผ ์กฐ์ž‘ํ•˜๋Š” ActionsChains์œผ๋กœ ๋ธŒ๋ผ์šฐ์ €๊ฐ€ ์š”์†Œ๊ฐ€ ์žˆ๋Š” ๊ณณ์œผ๋กœ ์ด๋™์‹œํ‚ฌ ์ˆ˜ ์žˆ๋‹ค. 

 

 

์ฐธ๊ณ : 

https://stackoverflow.com/questions/41744368/scrolling-to-element-using-webdriver

 

Scrolling to element using webdriver?

I am still learning and in response to one of my questions: here, I was told to that it might be due because the element in question is not in view. I looked through the documentation and SO, her...

stackoverflow.com

 

https://www.lambdatest.com/blog/how-to-deal-with-element-is-not-clickable-at-point-exception-using-selenium/

 

How To Deal With "Element is not clickable at pointโ€ Exception Using Selenium

In this blog, we will deal with the "Element is not clickable at pointโ€ exception using Selenium.

www.lambdatest.com

 

728x90