Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Last active February 26, 2016 11:19
Show Gist options
  • Save kurozumi/0b887cc6767abd0e430b to your computer and use it in GitHub Desktop.
Save kurozumi/0b887cc6767abd0e430b to your computer and use it in GitHub Desktop.
【Python】SeleniumでF5キーを押す方法
# coding: utf-8
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()
driver.get("http://www.yahoo.co.jp")
driver.find_element_by_tag_name("body").send_keys(Keys.F5)
driver.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment