I've been following this tutorial to learn how to use Selenium and I just successfully ran the following code:
from selenium.webdriver import Firefox
from selenium.webdriver.firefox.options import Options
opts = Options()opts.headless=True
assert opts.headless # Operating in headless mode
browser = Firefox(options=opts)browser.get('https://bandcamp.com')
browser.find_element_by_class('playbutton').click()
How do I ensure the headless Firefox is no longer running? I ran this code twice and now two songs are playing over each other. Any help is appreciated, I just want to make sure nothing is running in the background!