IE11 (Win11) selenium automation reports This is the initial start page for the WebDriver server. Solution

I have been using IE11 to report This is the initial start page for the WebDriver server. Error, I searched for many methods such as modifying Internet options, modifying the registry, etc., but they did not solve it.

  1. Modify the Internet options, win11 and the results found on the Internet are basically different, so the solution is invalid

  1. Registry has also been changed, also did not work

  1. Use python code to modify the window zoom ratio, also tried, but it didn’t work

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)'))

  1. Then try a method, download the latest IEWebDriver, IEDriverServer_x64_4.8.1, I downloaded the 64-bit one, the project can run, but it is extremely slow, super slow, I searched the method on the Internet, use IEDriverServer_Win32_4.8.1, and put it in the python directory , perfectly solved the problem

Download address: https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.8.0/IEDriverServer_Win32_4.8.1.zip

Guess you like

Origin blog.csdn.net/u012388338/article/details/129618868