1

My cpu usage is on average 17% with peaks of 22% when running this selenium script. Is this normal? I have a 5 5600g processor and am not running anything in the background. Thanks in advance.

Button = driver.find_elements(By.CLASS_NAME, "button")
while not (driver.find_elements(By.CLASS_NAME, "button")):
    time.sleep(1)
    driver.refresh()
Button[0].click() 
koeliga
  • 81
  • 1
  • 6

1 Answers1

1

Officially there is no benchmarking about CPU usage while executing test using Selenium.

Hence, I won't be suprised with CPU usage on average as 17% with peaks of 22% even with 5 5600g processor as historically:

and the remediation steps are mentioned in:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352