Last active
June 19, 2019 00:24
-
-
Save pAulseperformance/211c307edf8f828806c4bb4e4707b106 to your computer and use it in GitHub Desktop.
Useful Selenium Techniques with python
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
# 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