Professional Documents
Culture Documents
Code
Code
print(selenium.__version__)
import time
while True:
s = Service("C:/Users/ACER/Desktop/chromedriver-win32/chromedriver.exe")
options = webdriver.ChromeOptions()
options.add_argument("--incognito")
#options.add_argument('--headless')
options.add_argument("disable-infobars")
driver=webdriver.Chrome(options=options,service=s)
driver.get("https://asebsummit.com/vote2023/")
time.sleep(1)
btn=driver.find_element(By.XPATH,'/html/body/div[2]/main/div/section/div/div/div/div/div/div[1]/
div/div[2]/ul/li[4]/div/div[4]/form/input[3]')
driver.execute_script("arguments[0].click()",btn)
# Let the user actually see something!
time.sleep(2)
driver.close()