Python Forum
Looping/Scheduling webelement select
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looping/Scheduling webelement select
Hi guys,

I am wanting help with either turning this below code into either a For statement so I can ultimately create a loop for hourly or scheduling the below code to schedule it every hour:

from selenium import webdriver
from selenium import webdriver
from selenium import webdriver
from import ChromeDriverManager
import time
import schedule
from import WebDriverWait
from import expected_conditions as EC
from import By

driver = webdriver.Chrome(ChromeDriverManager().install())
button = WebDriverWait(driver, 30).until(EC.presence_of_element_located((By.XPATH, "/html/body/div[7]/div/div[3]/div/div[1]/div/div[1]/div/div[4]")))    
remove 2 of the 3 imports lines 1-3
you can use 'sched' ( ) for scheduling,

or do it from OS command with cron (Linux), not sure what windows equivalent is.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Webelement scroll rove76 1 828 Mar-17-2020, 05:38 PM
Last Post: rove76

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020