I’m trying to read if an element of a web page changes when I input some string of numbers in an input box. Is there a way to know the response of the web without having to open the web page in a tab with selenium? I am trying to check millions of inputs so it would be better to not have to open the tab and input each combination in the simulated selenium browser. Thanks.
>Solution :
you can try using the –headless option that does not open a tab.
An example could be:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("--headless")
browser = webdriver.Chrome(options=chrome_options)
browser.get("https://example.com")
print(browser.page_source)