microsoft / WinAppDriver

Windows Application Driver
MIT License
3.68k stars 1.4k forks source link

Failed to initialize: 0x80004005 #736

Open Blank517 opened 5 years ago

Blank517 commented 5 years ago

When I try to run WinAppDriver.exe I get this message:

Windows Application Driver listening for requests at: http://127.0.0.1:4723/

Error adding url to url group

Failed to initialize: 0x80004005

How can I fix this error?

hassanuz commented 5 years ago

Hi @Blank517,

What version of WinAppDriver are you running? Do you have any anti-virus / firewall etc. running in the background?

I would also recommend taking a look at this post to see if your issue is similar.

maikelgithub commented 5 years ago

This happens to me when WAD is already running.

cbjl23 commented 5 years ago

I had the same problem - for me the fix was to reference localhost instead:

winappdriver localhost 4723

zhonli commented 5 years ago

maybe the ip address is changed

cvermaak-inspiredtesting commented 3 years ago

I am having the same issue. WinAppDriver is not yet running.

MulubrhanD commented 3 years ago

When I ran CMD as an admin and entered the command:

C:\WINDOWS\system32>"C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe" Windows Application Driver listening for requests at: http://127.0.0.1:4723/

Address 'http://127.0.0.1:4723/' is already in use

Failed to initialize: 0x80004005

After issuing the command, I got the process ID of the process listening on the port:

C:\WINDOWS\system32>netstat -ano | findStr "4723" TCP 0.0.0.0:4723 0.0.0.0:0 LISTENING 4

On Task Manager, the process name is ntoskrnl (NT Kernel & System)


Because I didn't want to stop a system process, I used another port for the WinAppDriver.exe and it worked perfectly (I don't know exactly if there is some drawback of running the driver on a different port though).

C:\WINDOWS\system32>"C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe" 4725 Windows Application Driver listening for requests at: http://127.0.0.1:4725/ Press ENTER to exit.

MamadouAlphaDiallo commented 2 years ago

Hello everyone in my case I would like to initialize winappdriver with my local ip address of my machine (WinAppdriver.exe 192.XX.X.XX 4723/wd/hub) but I have this error message. Error adding url to url group Failed to initialize: 0x80004005

Could you please help me