Last active
May 26, 2017 03:17
-
-
Save kurozumi/d97cc32d0cb0a643dc86587ace532698 to your computer and use it in GitHub Desktop.
【Python】Seleniumを使ってjQueryが読み込まれるまで待つ方法
This file contains 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://mixi.jp") | |
WebDriverWait(driver, 30).until( | |
lambda driver: driver.execute_script('return !!window.jQuery && window.jQuery.active == 0') | |
) | |
driver.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment