0

I'm wondering if anyone can explain, why the lines come after service.start() do not execute?

from selenium import webdriver
from selenium.webdriver.firefox.service import Service as FirefoxService
import time
tor_path = "Browser"
service = FirefoxService(executable_path=tor_path + "/firefox.exe")
print(service.service_url)
service.start()

driver = webdriver.Firefox(service.service_url)
print("after time")
time.sleep(20)
driver.get("https://www.google.com")

0 Answers0