import Options
chrome_options = Options()
chrome_options.add_argument("--enable-features=NetworkService")
chrome_options.add_argument("--enable-features=NetworkServiceWindowsSandbox")
driver = webdriver.Chrome(options=chrome_options)
########################## Changes Here
driver.get(sys.argv[1])
I've just run it and it return me :
DevTools listening on ws://127.0.0.1:60135/devtools/browser/31a9ecde-2a7c-4774-b905-a6b8bdf12ffc
[9924:9328:0612/224601.096:ERROR:browser_process_sub_thread.cc(221)] Waited 208 ms for network service
after a few seconds, any more details u need? I'm just a newbie in python coding and googling sadly didn't help me in this case
This is soo much better, as for your deprecated warning you should replace chrome_options with options. There must be a migration guide online lemme see
Do you have chromedriver installed?
Обсуждают сегодня