Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
【Python】Seleniumを使って要素が有効かどうか確認する方法
driver = webdriver.Firefox()
driver.get("https:www.google.co.jp")
element = driver.find_element_by_tag_name("body")
# 有効ならTrueを返す
print(element.is_enabled())
driver.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment