2019年3月21日 星期四
Python Selenium Auto Refresh Webpage
This a.py code uses "geckodriver.exe" in same directory to auto refresh a webpage until specified string is found.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
driver = webdriver.Firefox()
while True:
driver.get("http://www.aegpromotion.com/mayday2019")
if "The system is currently processing ticketing purchase by a large number of customers" not in driver.page_source:
break
print('waiting 6 seconds')
time.sleep(6)
input("Great!")
driver.close()
訂閱:
張貼留言 (Atom)
2007 to 2023 HP and Dell Servers Comparison
HP Gen5 to Gen11 using ChatGPT HP ProLiant Gen Active Years CPU Socket Popular HP CPUs Cores Base Clock Max RAM Capacity Comparable Dell ...
-
https://www.tutorialspoint.com/ Q Data Types There are a lot of data types in Q, including boolean byte short int long real float cha...
-
CME MDP 3.0 Market Data http://www.cmegroup.com/confluence/display/EPICSANDBOX/CME+MDP+3.0+Market+Data CME Market Data Platform has 3 ...
-
On CentOS 7, using yum install gives you cmake version 2.8.11 [root@thrift1 ~]# cat /etc/*release CentOS Linux release 7.2.1511 (Core) ...
沒有留言:
張貼留言