Jump to content

Search the Community

Showing results for tags 'geckodriver'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Today my Firefox scripts started returning HTTP method not allowed: _WD_IsLatestRelease ==> Success (0) : False _WD_Startup: OS: WIN_10 WIN32_NT 19045 _WD_Startup: AutoIt: 3.3.14.5 _WD_Startup: Webdriver UDF: 0.8.1 (Update available) _WD_Startup: WinHTTP: 1.6.4.2 _WD_Startup: Driver: C:\Users\joeur\Documents\AutoIt_code/geckodriver.exe (32 Bit) _WD_Startup: Params: _WD_Startup: Port: 4444 _WD_Startup: Command: "C:\Users\joeur\Documents\AutoIt_code/geckodriver.exe" __WD_Post: URL=HTTP://127.0.0.1:4444/session; $sData={"desiredCapabilities":{"javascriptEnabled":true,"nativeEvents":true,"acceptInsecureCerts":true}} __WD_Post ==> Invalid argument (5) HTTP status = 400 : ResponseText={"value":{"error":"invalid argument","message":"missing field `capabilities`","stacktrace":""}}... _WD_CreateSession: {"value":{"error":"invalid argument","message":"missing field `capabilities`","stacktrace":""}} _WD_CreateSession ==> Webdriver Exception (10) HTTP status = 400 __WD_Post: URL=HTTP://127.0.0.1:4444/session//url; $sData={"url":"https://www.catribunal.org.uk"} __WD_Post ==> Unknown Command (16) HTTP status = 405 : ResponseText=HTTP method not allowed... _WD_Navigate ==> Unknown Command (16) HTTP status = 405 : HTTP method not allowed __WD_Post: URL=HTTP://127.0.0.1:4444/session//window/maximize; $sData={} __WD_Post ==> Unknown Command (16) HTTP status = 405 : ResponseText=HTTP method not allowed... _WD_Window ==> Unknown Command (16) HTTP status = 405 : : Response=HTTP method not allowed... __WD_Post: URL=HTTP://127.0.0.1:4444/session//elements; $sData={"using":"xpath","value":"//table[@id='table%20alfresco-table']/tbody/tr"} __WD_Post ==> Unknown Command (16) HTTP status = 405 : ResponseText=HTTP method not allowed... _WD_FindElement ==> Unknown Command (16) HTTP status = 405 : HTTP method not allowed _WD_GetTable ==> Unknown Command (16) HTTP status = 405 __WD_Post: URL=HTTP://127.0.0.1:4444/session//element; $sData={"using":"xpath","value":"//a[@id='table%20alfresco-table'][not(@disabled)]"} __WD_Post ==> Unknown Command (16) HTTP status = 405 : ResponseText=HTTP method not allowed... _WD_FindElement ==> Unknown Command (16) HTTP status = 405 : HTTP method not allowed __WD_Delete: URL=HTTP://127.0.0.1:4444/session/ __WD_Delete ==> Unknown Command (16) HTTP status = 405 : ResponseText=HTTP method not allowed... _WD_DeleteSession ==> Webdriver Exception (10) HTTP status = 405 : HTTP method not allowed I've updated both Webdriver UDF and geckodriver.exe #include "wd_helper.au3" #include "wd_helper.au3" #include "wd_core.au3" #include <Array.au3> #include <Date.au3> Global $_WD_DRIVER, $_WD_READYSTATE_Interactive Local $sDesiredCapabilities $resources = @MyDocumentsDir & '\AutoIt_code\getter\resources\' SetupGecko() _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) _WD_Navigate($sSession, 'https://www.catribunal.org.uk') ;$Handle = _WD_Window($sSession, 'window', '') _WD_Window($sSession, "Maximize") Local $aResult = _WD_GetTable($sSession, "//table[@id='table%20alfresco-table']") $aElements = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//a[@id='table%20alfresco-table'][not(@disabled)]") _ArrayDisplay($aResult) Sleep(5000) _WD_DeleteSession($sSession) _WD_Shutdown() Func SetupGecko() _WD_Option('Driver', @ScriptDir & '/geckodriver.exe') ;_WDOption('DriverParams', '--log trace') _WD_Option('Port', 4444) $sDesiredCapabilities = '{"desiredCapabilities":{"javascriptEnabled":true,"nativeEvents":true,"acceptInsecureCerts":true}}' ;$sDesiredCapabilities = '{"desiredCapabilities":{"javascriptEnabled":true,"nativeEvents":true,"acceptInsecureCerts":true, {"browserOptions": --binary C:\Program Files (x86)\Mozilla Firefox\firefox.exe, "browserName": firefox, "browserVersion": 59.0.1}}}' EndFunc ;==>SetupGecko
×
×
  • Create New...