Oct-18-2024, 03:45 PM
Here i working test,had to use subprocess to get incognito to work.
import subprocess chrome_path = r"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" url_list = [ "https://python-forum.io/", "https://www.python.org/" ] args = [chrome_path, '--incognito'] + url_list try: subprocess.Popen(args) except Exception as e: print(f"An error occurred: {e}")