0

The problem is that if you turn off the code during the 10 seconds of sleep, the driver will not turn off. All of this happens if you add this line:

(options.add_experimental_option('excludeSwitches', ['enable-logging']))
from selenium import webdriver
from time import sleep
options= webdriver.ChromeOptions()
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome('chromedriver.exe', options=options)
driver.get ('https://www.google.com')
sleep(10)```` 
fatihyildizhan
  • 8,614
  • 7
  • 64
  • 88

0 Answers0