Created
July 29, 2019 02:28
-
-
Save j-gonzal/7ddc4b3c6378b712560c9b043363dc63 to your computer and use it in GitHub Desktop.
Clicking out of a pop-up newsletter box
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
index = 1 | |
while index <= 7: | |
time.sleep(4) | |
try: | |
element = driver.find_element_by_xpath('//a[@id="drip-close-9704"]') | |
element.click() | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@j-gonzal, doesn't seem like gist like the file format of
.ipynb
, perhaps a.py
would work better?Here is the code for those looking for it.