I have a list of 3 browsers, with the random choice I want to open a link randomly using one of the browsers in my list, but when I run the code, all browsers get opened.
my_url="URL"
dlist=[webdriver.Edge(),webdriver.Chrome(),webdriver.Firefox()]
web_driver = random.choice(dlist)
web_driver.get(url)
web_driver.quit()