I have a python test and I want to run it without opening the firefox
I want to hide it so how can I do this ?
any help ?
Headless:
# pip install selenium
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
options = Options()
options.add_argument('--headless')
driver = webdriver.Firefox(options=options)
driver.get('https://www.google.com/doodles')
print('Title: "{}"'.format(driver.title))
driver.quit()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With