Jump to content

_Ace_

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by _Ace_

  1. @Danp2 Seems to work now. Thank you for the quick fix. 👍
  2. It seems to be a bug with geckodriver 0.27.0. I downgraded to geckodriver 0.26.0 and everything is working fine again.
  3. Hi, I'm new on this forum and since updating the WebDriver from 0.1.0.20 to 0.3.0.4 my code doesn't work anymore. I'm using Firefox 79.0 My (simplified) code: #include "wd_core.au3" #include "wd_helper.au3" Local $sDesiredCapabilities Local $sSession $_WD_DEBUG = True SetupGecko() _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) _WD_Navigate($sSession, "https://www.google.com") Sleep(1000) ExitProg() Func ExitProg() _WD_DeleteSession($sSession) _WD_Shutdown() EndFunc Func SetupGecko() _WD_Option('Driver', 'geckodriver.exe') _WD_Option('DriverParams', '--log trace') _WD_Option('Port', 4444) $sDesiredCapabilities = '{"desiredCapabilities":{"javascriptEnabled":true,"nativeEvents":true,"acceptInsecureCerts":true}}' EndFunc The output I'm getting: _WD_IsLatestRelease: True _WDStartup: OS: WIN_10 WIN32_NT 18362 _WDStartup: AutoIt: 3.3.14.5 _WDStartup: WD.au3: 0.3.0.4 (Up to date) _WDStartup: WinHTTP: 1.6.4.2 _WDStartup: Driver: geckodriver.exe _WDStartup: Params: --log trace _WDStartup: Port: 4444 __WD_Post: URL=HTTP://127.0.0.1:4444/session; $sData={"desiredCapabilities":{"javascriptEnabled":true,"nativeEvents":true,"acceptInsecureCerts":true}} __WD_Post: StatusCode=500; ResponseText={"value":{"error":"unknown error","message":"Invalid Content-Type","stacktrace":""}}... _WD_CreateSession: {"value":{"error":"unknown error","message":"Invalid Content-Type","stacktrace":""}} _WD_CreateSession ==> Webdriver Exception: Invalid Content-Type __WD_Post: URL=HTTP://127.0.0.1:4444/session//url; $sData={"url":"https://www.google.com"} __WD_Post: StatusCode=405; ResponseText=HTTP method not allowed... _WD_Navigate: HTTP method not allowed __WD_Delete: URL=HTTP://127.0.0.1:4444/session/ __WD_Delete: StatusCode=405; ResponseText=HTTP method not allowed... _WD_DeleteSession: HTTP method not allowed I'm not even managing to get Firefox to open. Please help.
×
×
  • Create New...