Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Last active May 26, 2017
Embed
What would you like to do?
【Python】Seleniumを使ってjQueryが読み込まれるまで待つ方法
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