current position:Home>Python selenium loading is slower than opening the web card normally. Is there any solution

Python selenium loading is slower than opening the web card normally. Is there any solution

2022-02-02 23:03:52 CSDN Q & A

Open a web page normally 0.1 Second load complete

selenium A lot of times 0.5 Or longer

Is there any way to solve this problem




Refer to the answer 1:

You can try to hide the window to execute

option=webdriver.ChromeOptions()option.add_argument('headless') #  Set up optiondriver = webdriver.Chrome(chrome_options=option)  #  Call Google browser with parameters 



Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022303491783.html

Random recommended