I didn't find the solution so I ended up using just the gecko driver. However i'm facing another problem now. I'm not able to click the button, I always get this error:
Here's my code:
#include "wd_core.au3"
#include "wd_helper.au3"
#include <GuiComboBoxEx.au3>
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>
#include <WindowsConstants.au3>
Local $sDesiredCapabilities, $iIndex, $sSession
Local $nMsg, $bProcess = False
SetupGecko()
_WD_Startup()
$sDesiredCapabilities = '{"desiredCapabilities":{"javascriptEnabled":true,"nativeEvents":true,"acceptInsecureCerts":true,"timeouts": {"implicit": 0, "pageLoad": 60000, "script": 30000}}}'
$sSession = _WD_CreateSession($sDesiredCapabilities)
_WD_Navigate($sSession, "https://app.spod.com/global")
ConsoleWrite("URL=" & _WD_Action($sSession, 'url') & @CRLF)
_WD_Shutdown()
Func SetupGecko()
_WD_Option('Driver', 'geckodriver.exe')
_WD_Option('DriverParams', '--log trace')
_WD_Option('Port', 4444)
EndFunc
WinWait("Sign-in to your account | SPOD App", "")
Sleep(5000)
ConsoleWrite("........................." & @CRLF)
$sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//button[@id='onetrust-accept-btn-handler']")
_WD_ElementAction($sSession, $sElement, "click")
exit;