mirror of
https://github.com/balkian/gists.git
synced 2024-12-24 23:28:13 +00:00
Add 'repos/2a64d7564414f1949ec6/' from commit '7c9b5a28e2438f2ea45c59b95ec1bdecb927234a'
git-subtree-dir: repos/2a64d7564414f1949ec6 git-subtree-mainline:72d995797b
git-subtree-split:7c9b5a28e2
This commit is contained in:
commit
14f97ed9bd
18
repos/2a64d7564414f1949ec6/iftt.py
Normal file
18
repos/2a64d7564414f1949ec6/iftt.py
Normal file
@ -0,0 +1,18 @@
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.support.ui import Select
|
||||
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium.webdriver.support import expected_conditions as EC
|
||||
from selenium.webdriver.support.ui import WebDriverWait
|
||||
|
||||
home = 'https://ifttt.com/recipes';
|
||||
driver = webdriver.Firefox()
|
||||
#driver.set_window_size(1024, 768)
|
||||
|
||||
driver.get(home)
|
||||
|
||||
wait = WebDriverWait(driver, 10)
|
||||
|
||||
for i in xrange(50):
|
||||
element = wait.until(EC.element_to_be_clickable((By.CLASS_NAME,'load_more_btn')))
|
||||
element.click()
|
Loading…
Reference in New Issue
Block a user