I want to run my python script which uses selenium to do some work. I need to test the code repeatedly and need to use the terminal as well. Thus the chrome window bugs me when it opens up in the foreground everytime. Also, I can't use the headless mode since my script crashes.
Is there any solution for this??
You can minimize window after selenium started
from selenium import webdriver
driver = webdriver.Chrome()
driver.minimize_window
driver.get("your_pages")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.