I'm currently using the chrome driver in Selenium to open chrome, log into the router, perform actions like clicking the buttons, upload configuration, etc.
Here is the part of the code:
chrome_options = webdriver.ChromeOptions()
prefs = {"download.default_directory": self.user_local}
chrome_options.add_experimental_option("prefs", prefs)
chrome_options.experimental_options.
driver = webdriver.Chrome("chromedriver.exe", chrome_options=chrome_options)
driver.set_window_position(0, 0)
driver.set_window_size(0, 0)
return driver
When I try to fire up my application, I get a chromedriver.exe console window followed by a chrome window opened and all the executions are done.
My question here is, is there a way to hide that ChromeDriver.exe console window using Python? As you can see I've also re-sized the window and my preference would be doing things in a way the user won't notice anything happening on screen