Skip to content

Instantly share code, notes, and snippets.

@pAulseperformance
Last active June 19, 2019 00:24
Show Gist options
  • Save pAulseperformance/211c307edf8f828806c4bb4e4707b106 to your computer and use it in GitHub Desktop.
Save pAulseperformance/211c307edf8f828806c4bb4e4707b106 to your computer and use it in GitHub Desktop.
Useful Selenium Techniques with python
# Download entire webpage including all javascript, html, css of webpage. Replicates ctrl+s when on a webpage.
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
def save_current_page():
ActionChains(browser).send_keys(Keys.CONTROL, "s").perform()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment