本人使用IE11一直報This is the initial start page for the WebDriver server.錯誤,搜了很多方法例如修改Internet選項、修改注冊表等等都試了,就是沒有解決。
修改Internet選項,win11和網(wǎng)上搜出的結(jié)果,基本都不一樣,所以解決無效

注冊表也改了,也沒用

使用python代碼修改窗口縮放比例,也試了,也沒用
zoom_level = driver.execute_script('return (window.outerWidth / window.innerWidth)')
print( zoom_level)
if zoom_level > 1:
driver.execute_script("document.body.style.zoom='1'")
print(driver.execute_script('return (window.outerWidth / window.innerWidth)'))
然后試一種方法,下載最新的IEWebDriver,IEDriverServer_x64_4.8.1,我下載了64位的,項目可以運(yùn)行了,但是無比慢,超級慢,網(wǎng)上搜了方法,使用IEDriverServer_Win32_4.8.1,并放在python目錄下,完美的解決了問題文章來源:http://www.zghlxwxcb.cn/news/detail-721151.html
下載地址:https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.8.0/IEDriverServer_Win32_4.8.1.zip 文章來源地址http://www.zghlxwxcb.cn/news/detail-721151.html
到了這里,關(guān)于IE11(Win11)selenium自動化報This is the initial start page for the WebDriver server.解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!