0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

element not interactableを攻略する

Posted at

Pythonでselenuimを使い、動的なページをスクレイピングしたことのある人ならば、一度は出会ったであろう

elem.click()

等に対する

ElementNotInteractableException: Message: element not interactable

(原因がよくわからないという意味で)凶悪なエラー
こちらを以下で解消できたケースがあった。

from selenium.webdriver.common.action_chains import ActionChains

# 中略

ActionChains(driver).move_to_element(elem).perform()
elem.click()

全てのケースで解決しなさそうだがヒントになれば幸い。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?