The simple code like this:
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
It runs well , but! The opened browser quit automatically. Some infos below
- i have more selenium develop experience , this issue i met it these days on teaching my students.
- chromedriver version : 107.0.5304.62
- chrome version : 107.0.5304.107
- selenium version : 4.6
- python version : 3.10
It can work fine on an other PC1. I can't find the difference between them. I try to collect the selenium log .
from selenium import webdriver
driver = webdriver.Chrome(service_args=['--verbose'],service_log_path='selenium.log')
driver.get('https://www.baidu.com')
I get the log on PC1 too. I found the difference , but i can't sure it is the source of this issue , also i can't solve it.
Here is the doubtful point:
[1669339280.964][INFO]: [9a850cc416a680214e963aab4064f86b] COMMAND QuitAll { } [1669339281.111][INFO]: [9a850cc416a680214e963aab4064f86b] RESPONSE QuitAll
That's all , please give me some advices. Thank u.