Have you ever encountered the problem of blocking the browser profile directory created by WebDriver? I have such problem from about 2 weeks with some version of ESET solutions. You can test it with "wd_demo.au3" with this modified SetupGecko() Func SetupGecko($bHeadless) _WD_Option('Driver', 'geckodriver.exe') Local $iPort = _WD_GetFreePort(4444, 4500) If @error Then Return SetError(@error, @extended, 0) _WD_Option('Port', $iPort) _WD_Option('Driver