Created
May 26, 2017 05:08
-
-
Save kurozumi/9d810296f471a5c5081b9b40e2cca717 to your computer and use it in GitHub Desktop.
【Python】Seleniumを使って要素が有効かどうか確認する方法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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