'Sequential instead of parallel execution threads in selenium python

I'm trying to run several tests on selenium at the same time using multithreading. However, they are executed sequentially. The test was performed in the first browser window, then begins in the second. Can you tell me how you can make them run in parallel? I tried just running through the start, tried adding join, but it still doesn't work

import threading
class Worker(threading.Thread):
    def __init__(self, id, url):
       threading.Thread.__init__(self)
       self.chrome_options = Options()
       self.chrome_options.add_experimental_option("debuggerAddress", f"127.0.0.1:{self.port}")
       self.driver = webdriver.Chrome(self.chrome_driver, chrome_options=self.chrome_options)
       self.driver.get(url)
       ........
if __name__ == "__main__":
   url = "https://example.com"
   t1 = Worker(2, url)
   t2 = Worker(3, url)
   t1.start()
   t2.start()
   t1.join()
   t2.join()


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source