Jump to content

New to this. Need help WebDriver UDF | Chrome


Recommended Posts

I guess anything is possible. Again, hard to say with such limited information. Can you explain why you are so relucant to provide more details information?

At this point, I can only suggest that you run the following script and post the complete output from Scite --

#include "wd_core.au3"
$_WD_DEBUG = $_WD_DEBUG_Info        ; Full logging to console

Local $sDesiredCapabilities, $sSession
SetupChrome()
_WD_Startup()
$sSession = _WD_CreateSession($sDesiredCapabilities)

Func SetupChrome()
    _WD_Option('Driver', 'chromedriver.exe')
    _WD_Option('Port', 9515)
    _WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"')
    $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":["start-maximized","disable-infobars"]}}}}'
EndFunc

This will at least give us details regarding your setup.

Link to post
Share on other sites
  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

That function is present in the include wd_helper.au3 If you use (have copied) that function in your own script too, there will be 2 functions with the same name, therefore, duplicate. In or

Not sure... since I can't access the site. You could try something like this -- _WD_ElementOptionSelect($sSession, $_WD_LOCATOR_ByXPath, "//select[@name='rollback_bodi']/optgroup[1]/option[1]

Posted Images

  

>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\MondayRoutine.au3"    
_WD_IsLatestRelease: 
_WD_IsLatestRelease ==> Send / Recv error
_WDStartup: OS: WIN_7 WIN32_NT 7601 Service Pack 1
_WDStartup: AutoIt: 3.3.14.5
_WDStartup: WD.au3: 0.3.0.1 (Update status unknown [6])
_WDStartup: WinHTTP:    1.6.4.1
_WDStartup: Driver: chromedriver.exe
_WDStartup: Params: --log-path="C:\chrome.log"
_WDStartup: Port:   9515
__WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":["start-maximized","disable-infobars"]}}}}
__WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"83.0....
_WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"83.0.4103.97","chrome":{"chromedriverVersion":"83.0.4103.39 (ccbf011cb2d2b19b506d844400483861342c20cd-refs/branch-heads/4103@{#416})","userDataDir":"C:\\scoped_dir4900_1163064296"},"goog:chromeOptions":{"debuggerAddress":"localhost:62"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:virtualAuthenticators":true},"sessionId":"f24560a512ece1390fa50c2caa7fb3f3"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/url; $sData={"url":"https:\\.de"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Navigate: {"value":null}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"//input[@id='user']"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"95e59ec8-6e68-4b2a-b7c8-a49ff417e623"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"95e59ec8-6e68-4b2a-b7c8-a49ff417e623"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/95e59ec8-6e68-4b2a-b7c8-a49ff417e623/value; $sData={"id":"95e59ec8-6e68-4b2a-b7c8-a49ff417e623", "text":"xxxxxx"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"//input[@id='pwd']"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"c8c65f66-d88a-4b7f-8233-176f6790b70c"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"c8c65f66-d88a-4b7f-8233-176f6790b70c"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/c8c65f66-d88a-4b7f-8233-176f6790b70c/value; $sData={"id":"c8c65f66-d88a-4b7f-8233-176f6790b70c", "text":"xxxxxxx"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"partial link text","value":"myAccount"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"dfef009e-ad40-4539-a9fa-3c4354062f2a"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"dfef009e-ad40-4539-a9fa-3c4354062f2a"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/dfef009e-ad40-4539-a9fa-3c4354062f2a/click; $sData={"id":"dfef009e-ad40-4539-a9fa-3c4354062f2a"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-5B8F0976E82FA7118B5229340BF3C13C","CDwindow-C1450948E2C917FA3A641B03A9EE4E9B"]}...
_WD_Window: {"value":["CDwindow-5B8F0976E82FA7118B5229340BF3C13C","CDwindow-C1450948E2C917FA3A641B03A9EE4E9B"]}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/window
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"CDwindow-5B8F0976E82FA7118B5229340BF3C13C"}...
_WD_Window: {"value":"CDwindow-5B8F0976E82FA7118B5229340BF3C13C"}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/window; $sData={"handle":"CDwindow-5B8F0976E82FA7118B5229340BF3C13C"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Window: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/title
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"AG"}...
_WD_Action: {"value":"AG"}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/window; $sData={"handle":"CDwindow-C1450948E2C917FA3A641B03A9EE4E9B"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Window: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/title
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"..g"}...
_WD_Action: {"value":"...g"}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"partial link text","value":"Prozess"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"2bc55a36-fdee-442e-a339-abc7934e006e"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"2bc55a36-fdee-442e-a339-abc7934e006e"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/2bc55a36-fdee-442e-a339-abc7934e006e/click; $sData={"id":"2bc55a36-fdee-442e-a339-abc7934e006e"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"partial link text","value":"zur��etzen"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"335b203b-68e8-47a4-b7ac-448bd2f30ee6"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"335b203b-68e8-47a4-b7ac-448bd2f30ee6"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/335b203b-68e8-47a4-b7ac-448bd2f30ee6/click; $sData={"id":"335b203b-68e8-47a4-b7ac-448bd2f30ee6"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"partial link text","value":"Abrechnung"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"751ef54a-a2ce-4bc1-b9ad-4694af6df70a"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"751ef54a-a2ce-4bc1-b9ad-4694af6df70a"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/751ef54a-a2ce-4bc1-b9ad-4694af6df70a/click; $sData={"id":"751ef54a-a2ce-4bc1-b9ad-4694af6df70a"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"partial link text","value":"AG"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"f3b6e1dc-9150-405d-857f-fa60ce2e666c"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"f3b6e1dc-9150-405d-857f-fa60ce2e666c"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/f3b6e1dc-9150-405d-857f-fa60ce2e666c/click; $sData={"id":"f3b6e1dc-9150-405d-857f-fa60ce2e666c"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"//select[@name='project']//option[contains(text(),'ario')]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"6a6cc3bb-a93e-40c1-ba25-66207dc19f6a"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"6a6cc3bb-a93e-40c1-ba25-66207dc19f6a"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/6a6cc3bb-a93e-40c1-ba25-66207dc19f6a/click; $sData={"id":"6a6cc3bb-a93e-40c1-ba25-66207dc19f6a"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"//select[@name='ag']//option[contains(text(),'ario G')]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"f7bb0615-5332-4eea-93da-ac256b3a37c2"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"f7bb0615-5332-4eea-93da-ac256b3a37c2"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/f7bb0615-5332-4eea-93da-ac256b3a37c2/click; $sData={"id":"f7bb0615-5332-4eea-93da-ac256b3a37c2"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"/html/body/center/div/table/tbody/tr[2]/td[2]/div/table/tbody/tr[2]/td/form[2]/select/option[last()]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"0a7ef1ce-f62e-4fbf-a75a-ac1147594313"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"0a7ef1ce-f62e-4fbf-a75a-ac1147594313"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/0a7ef1ce-f62e-4fbf-a75a-ac1147594313/click; $sData={"id":"0a7ef1ce-f62e-4fbf-a75a-ac1147594313"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"/html/body/center/div/table/tbody/tr[2]/td[2]/div/table/tbody/tr[2]/td/table/tbody/tr[4]/td[2]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"0e11b30d-23ed-4d36-9c1f-91d2769882cb"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"0e11b30d-23ed-4d36-9c1f-91d2769882cb"}}
__WD_Get: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/0e11b30d-23ed-4d36-9c1f-91d2769882cb/text
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"1200"}...
_WD_ElementAction: {"value":"1200"}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"//select[@name='ag']//option[contains(text(),'ario P')]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"9c3e320b-1906-4413-9381-ffdc703a8c75"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"9c3e320b-1906-4413-9381-ffdc703a8c75"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/9c3e320b-1906-4413-9381-ffdc703a8c75/click; $sData={"id":"9c3e320b-1906-4413-9381-ffdc703a8c75"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"/html/body/center/div/table/tbody/tr[2]/td[2]/div/table/tbody/tr[2]/td/form[2]/select/option[last()]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"665d4204-b70c-4c6a-af86-69765ed8dbfa"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"665d4204-b70c-4c6a-af86-69765ed8dbfa"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/665d4204-b70c-4c6a-af86-69765ed8dbfa/click; $sData={"id":"665d4204-b70c-4c6a-af86-69765ed8dbfa"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"/html/body/center/div/table/tbody/tr[2]/td[2]/div/table/tbody/tr[2]/td/table/tbody/tr[4]/td[2]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"db3e1608-38d8-4031-8bce-62fc3ccc2930"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"db3e1608-38d8-4031-8bce-62fc3ccc2930"}}
__WD_Get: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/db3e1608-38d8-4031-8bce-62fc3ccc2930/text
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"1202"}...
_WD_ElementAction: {"value":"1202"}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"//select[@name='ag']//option[contains(text(),'BA G')]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"dff2b09b-5196-4446-807e-a53b86c79083"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"dff2b09b-5196-4446-807e-a53b86c79083"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/dff2b09b-5196-4446-807e-a53b86c79083/click; $sData={"id":"dff2b09b-5196-4446-807e-a53b86c79083"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"/html/body/center/div/table/tbody/tr[2]/td[2]/div/table/tbody/tr[2]/td/form[2]/select/option[last()]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"a33ad9c2-1c28-42ab-bf10-aacab4cd87fc"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"a33ad9c2-1c28-42ab-bf10-aacab4cd87fc"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/a33ad9c2-1c28-42ab-bf10-aacab4cd87fc/click; $sData={"id":"a33ad9c2-1c28-42ab-bf10-aacab4cd87fc"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"/html/body/center/div/table/tbody/tr[2]/td[2]/div/table/tbody/tr[2]/td/table/tbody/tr[4]/td[2]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"32efdb23-ead4-4fb8-ab12-49c547772e59"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"32efdb23-ead4-4fb8-ab12-49c547772e59"}}
__WD_Get: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/32efdb23-ead4-4fb8-ab12-49c547772e59/text
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"1201"}...
_WD_ElementAction: {"value":"1201"}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"partial link text","value":"Plattform"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"740e36a3-6177-4629-978c-6b30420da632"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"740e36a3-6177-4629-978c-6b30420da632"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/740e36a3-6177-4629-978c-6b30420da632/click; $sData={"id":"740e36a3-6177-4629-978c-6b30420da632"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"partial link text","value":"Arbeitsgruppen"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"631ac22d-c96b-4aeb-89ce-4a94bd8d9a1c"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"631ac22d-c96b-4aeb-89ce-4a94bd8d9a1c"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/631ac22d-c96b-4aeb-89ce-4a94bd8d9a1c/click; $sData={"id":"631ac22d-c96b-4aeb-89ce-4a94bd8d9a1c"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"//select[@name='project']//option[contains(text(),'ario')]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"ce722198-c7c5-49bf-a2e6-1559a7ed32b9"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"ce722198-c7c5-49bf-a2e6-1559a7ed32b9"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/ce722198-c7c5-49bf-a2e6-1559a7ed32b9/click; $sData={"id":"ce722198-c7c5-49bf-a2e6-1559a7ed32b9"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"//table[2]//tbody[1]//tr[1]//td[1]//a[1]//img[1]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"679edb4e-008f-4b0c-b117-750f8b2887e7"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"679edb4e-008f-4b0c-b117-750f8b2887e7"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/679edb4e-008f-4b0c-b117-750f8b2887e7/click; $sData={"id":"679edb4e-008f-4b0c-b117-750f8b2887e7"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"/html/body/table/tbody/tr/td/table/tbody/tr[3]/td[2]/table/tbody/tr/td/form/div[7]/fieldset/legend/table/tbody/tr/td[4]/strong/nobr/span"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"673419a2-479c-47e9-b640-85643b32a478"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"673419a2-479c-47e9-b640-85643b32a478"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/673419a2-479c-47e9-b640-85643b32a478/click; $sData={"id":"673419a2-479c-47e9-b640-85643b32a478"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"/html/body/table/tbody/tr/td/table/tbody/tr[3]/td[2]/table/tbody/tr/td/form/div[7]/div/table[4]/tbody/tr/td[1]/label/span[1]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"b873bde3-6e52-4ada-804b-84e057ea5ef9"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"b873bde3-6e52-4ada-804b-84e057ea5ef9"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/b873bde3-6e52-4ada-804b-84e057ea5ef9/click; $sData={"id":"b873bde3-6e52-4ada-804b-84e057ea5ef9"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"/html/body/table/tbody/tr/td/table/tbody/tr[3]/td[2]/table/tbody/tr/td/form/div[7]/div/div[4]/table/tbody/tr[4]/td[2]/select/option[4]"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"9daf53f9-e5c1-4b7b-9623-09bb4f66f502"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"9daf53f9-e5c1-4b7b-9623-09bb4f66f502"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/9daf53f9-e5c1-4b7b-9623-09bb4f66f502/click; $sData={"id":"9daf53f9-e5c1-4b7b-9623-09bb4f66f502"}
__WD_Post: StatusCode=400; ResponseText={"value":{"error":"element not interactable","message":"element not interactable: Element is not cur...
_WD_ElementAction: {"value":{"error":"element not interactable","message":"element not interactable: Element is not cur...
_WD_ElementAction ==> Element interaction issue: {"value":{"error":"element not interactable","message":"element not interactable: Element is not currently visible and may not be manipulated\n  (Session info: chrome=83.0.4103.97)","stacktrace":"Backtrace:\n\tOrdinal0 [0x00679563+2725219]\n\tOrdinal0 [0x00578551+1672529]\n\tOrdinal0 [0x00460359+525145]\n\tOrdinal0 [0x004620E5+532709]\n\tOrdinal0 [0x00461FD4+532436]\n\tOrdinal0 [0x00462190+532880]\n\tOrdinal0 [0x003F9D0C+105740]\n\tOrdinal0 [0x003FB6B7+112311]\n\tOrdinal0 [0x003F47C0+83904]\n\tOrdinal0 [0x0040AA9D+174749]\n\tOrdinal0 [0x003F41F6+82422]\n\tOrdinal0 [0x0040ACE1+175329]\n\tOrdinal0 [0x00413D7C+212348]\n\tOrdinal0 [0x0040A94B+174411]\n\tOrdinal0 [0x003F2528+75048]\n\tOrdinal0 [0x003F35A0+79264]\n\tOrdinal0 [0x003F3539+79161]\n\tOrdinal0 [0x0058D607+1758727]\n\tGetHandleVerifier [0x00796546+1050150]\n\tGetHandleVerifier [0x00796291+1049457]\n\tGetHandleVerifier [0x007A10D7+1094071]\n\tGetHandleVerifier [0x00796B46+1051686]\n\tOrdinal0 [0x00585B06+1727238]\n\tOrdinal0 [0x0058EB7B+1764219]\n\tOrdinal0 [0x0058ECE3+1764579]\n\tOrdinal0 [0x005A4C05+1854469]\n\tBaseThreadInitThunk [0x7597343D+18]\n\tRtlInitializeExceptionChain [0x77169812+99]\n\tRtlInitializeExceptionChain [0x771697E5+54]\n"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element; $sData={"using":"xpath","value":"//div[@class='displayDiv FieldsetInnerContent']//input[@class='button']"}
__WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"383dde44-6363-40b4-98bd-2ad2ca19a349"}}...
_WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"383dde44-6363-40b4-98bd-2ad2ca19a349"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/element/383dde44-6363-40b4-98bd-2ad2ca19a349/click; $sData={"id":"383dde44-6363-40b4-98bd-2ad2ca19a349"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ElementAction: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-5B8F0976E82FA7118B5229340BF3C13C","CDwindow-C1450948E2C917FA3A641B03A9EE4E9B"]}...
_WD_Window: {"value":["CDwindow-5B8F0976E82FA7118B5229340BF3C13C","CDwindow-C1450948E2C917FA3A641B03A9EE4E9B"]}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/window
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"CDwindow-C1450948E2C917FA3A641B03A9EE4E9B"}...
_WD_Window: {"value":"CDwindow-C1450948E2C917FA3A641B03A9EE4E9B"}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/execute/sync; $sData={"script":"window.open(arguments[0], '', arguments[1])", "args":["",""]}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ExecuteScript: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-5B8F0976E82FA7118B5229340BF3C13C","CDwindow-C1450948E2C917FA3A641B03A9EE4E9B","C...
_WD_Window: {"value":["CDwindow-5B8F0976E82FA7118B5229340BF3C13C","CDwindow-C1450948E2C917FA3A641B03A9EE4E9B","C...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/window; $sData={"handle":"CDwindow-522836302594F1FBE334D55208E5B5BE"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Window: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/url; $sData={"url":"xxx.de/generate_csv.php?lauf_id=1200"}
__WD_Post: StatusCode=0; ResponseText=0...
__WD_Post ==> Send / Recv error
_WD_Navigate: 0
_WD_Navigate ==> Send / Recv error: HTTP status = 0
__WD_Post: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/execute/sync; $sData={"script":"return document.readyState", "args":[]}
__WD_Post: StatusCode=0; ResponseText=0...
__WD_Post ==> Send / Recv error
_WD_ExecuteScript: 0...
_WD_ExecuteScript ==> Send / Recv error: HTTP status = 0
_WD_LoadWait ==> Send / Recv error
__WD_Delete: URL=HTTP://127.0.0.1:9515/session/f24560a512ece1390fa50c2caa7fb3f3/window

>Process failed to respond; forcing abrupt termination...
>Exit code: 1    Time: 183.9

This is from Chrome log:

}
[1591962739.131][INFO]: [f24560a512ece1390fa50c2caa7fb3f3] RESPONSE SwitchToWindow
[1591962739.136][INFO]: [f24560a512ece1390fa50c2caa7fb3f3] COMMAND Navigate {
   "url": "http://xxx.de/generate_csv.php?lauf_id=1200"
}
[1591962739.136][INFO]: resolved localhost to ["::1","127.0.0.1"]
[1591962740.149][INFO]: Waiting for pending navigations...
[1591962740.154][INFO]: Done waiting for pending navigations. Status: ok
[1591963039.136][SEVERE]: Timed out receiving message from renderer: 300.000
[1591963039.136][INFO]: Waiting for pending navigations...
[1591963039.136][SEVERE]: Timed out receiving message from renderer: -0.000
[1591963039.136][INFO]: Timed out. Stopping navigation...
[1591963039.140][SEVERE]: Timed out receiving message from renderer: -0.000
[1591963039.141][INFO]: Done waiting for pending navigations. Status: timeout: Timed out receiving message from renderer: -0.000
[1591963039.141][INFO]: [f24560a512ece1390fa50c2caa7fb3f3] RESPONSE Navigate ERROR timeout: Timed out receiving message from renderer: -0.000
  (Session info: chrome=83.0.4103.97)
[1591963039.152][INFO]: [f24560a512ece1390fa50c2caa7fb3f3] COMMAND ExecuteScript {
   "args": [  ],
   "script": "return document.readyState"
}
[1591963039.153][INFO]: Waiting for pending navigations...
[1591963039.159][INFO]: Done waiting for pending navigations. Status: ok
[1591963039.168][INFO]: Waiting for pending navigations...
[1591963039.170][INFO]: Done waiting for pending navigations. Status: ok
[1591963039.170][INFO]: [f24560a512ece1390fa50c2caa7fb3f3] RESPONSE ExecuteScript "complete"
[1591963039.170][INFO]: [f24560a512ece1390fa50c2caa7fb3f3] COMMAND CloseWindow {

}
[1591963039.511][INFO]: [f24560a512ece1390fa50c2caa7fb3f3] RESPONSE CloseWindow [ "CDwindow-5B8F0976E82FA7118B5229340BF3C13C", "CDwindow-C1450948E2C917FA3A641B03A9EE4E9B" ]

 

Link to post
Share on other sites

I updated. But it still doesnt want.
Can i open a new tab and navigate with an other function? Maybe this solves it, when i use _WD_LoadWait?

>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\MondayRoutine.au3"    
_WD_IsLatestRelease: 
_WD_IsLatestRelease ==> Send / Recv error
_WDStartup: OS: WIN_7 WIN32_NT 7601 Service Pack 1
_WDStartup: AutoIt: 3.3.14.5
_WDStartup: WD.au3: 0.3.0.1 (Update status unknown [6])
_WDStartup: WinHTTP:    1.6.4.2
_WDStartup: Driver: chromedriver.exe
_WDStartup: Params: --log-path="C:\chrome.log"
_WDStartup: Port:   9515
__WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":["disable-infobars"]}}}}
__WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"83.0....
_WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"83.0.4103.97","chrome":{"chromedriverVersion":"83.0.4103.39 (ccbf011cb2d2b19b506d844400483861342c20cd-refs/branch-heads/4103@{#416})","userDataDir":"C:\\scoped_dir6940_628369292"},"goog:chromeOptions":{"debuggerAddress":"localhost:64240"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:virtualAuthenticators":true},"sessionId":"04ec2437c884f806389647d100186134"}}
__WD_Post: URL=HTTP://127.0.0.1:9515/session/04ec2437c884f806389647d100186134/url; $sData={"url":"https:\\xxxxxx.de"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Navigate: {"value":null}
------------------------------------------------------------------------------------
__WD_Get: URL=HTTP://127.0.0.1:9515/session/04ec2437c884f806389647d100186134/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-CBAC6A15FBF419F3CC4185482D60DED5","CDwindow-3D1618AB6BC3270F22A2A5F96F93E2BC"]}...
_WD_Window: {"value":["CDwindow-CBAC6A15FBF419F3CC4185482D60DED5","CDwindow-3D1618AB6BC3270F22A2A5F96F93E2BC"]}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/04ec2437c884f806389647d100186134/window
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"CDwindow-3D1618AB6BC3270F22A2A5F96F93E2BC"}...
_WD_Window: {"value":"CDwindow-3D1618AB6BC3270F22A2A5F96F93E2BC"}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/04ec2437c884f806389647d100186134/execute/sync; $sData={"script":"window.open(arguments[0], '', arguments[1])", "args":["",""]}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ExecuteScript: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/04ec2437c884f806389647d100186134/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-CBAC6A15FBF419F3CC4185482D60DED5","CDwindow-3D1618AB6BC3270F22A2A5F96F93E2BC","C...
_WD_Window: {"value":["CDwindow-CBAC6A15FBF419F3CC4185482D60DED5","CDwindow-3D1618AB6BC3270F22A2A5F96F93E2BC","C...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/04ec2437c884f806389647d100186134/window; $sData={"handle":"CDwindow-81D236B5D406343D350807B46EA24170"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Window: {"value":null}...

Problem!

__WD_Post: URL=HTTP://127.0.0.1:9515/session/04ec2437c884f806389647d100186134/url; $sData={"url":"http://xxxx.de/id=1200"}
__WD_Post: StatusCode=0; ResponseText=0...
__WD_Post ==> Send / Recv error
_WD_Navigate: 0
_WD_Navigate ==> Send / Recv error: HTTP status = 0
__WD_Post: URL=HTTP://127.0.0.1:9515/session/04ec2437c884f806389647d100186134/execute/sync; $sData={"script":"return document.readyState", "args":[]}
__WD_Post: StatusCode=0; ResponseText=0...
__WD_Post ==> Send / Recv error
_WD_ExecuteScript: 0...
_WD_ExecuteScript ==> Send / Recv error: HTTP status = 0
_WD_LoadWait ==> Send / Recv error
__WD_Delete: URL=HTTP://127.0.0.1:9515/session/04ec2437c884f806389647d100186134/window
__WD_Delete: StatusCode=0; ResponseText=0...
__WD_Delete ==> Webdriver Exception
_WD_Window: 0...
_WD_Window ==> Webdriver Exception: HTTP status = 0
__WD_Get: URL=HTTP://127.0.0.1:9515/session/04ec2437c884f806389647d100186134/window/handles

>Process failed to respond; forcing abrupt termination...
>Exit code: 1    Time: 214.4

Problem!

And this is chrome.log

[1591964808.454][INFO]: [04ec2437c884f806389647d100186134] RESPONSE SwitchToWindow
[1591964808.458][INFO]: [04ec2437c884f806389647d100186134] COMMAND Navigate {
   "url": "http://xxxx.de/lauf_id=1200"
}
[1591964808.460][INFO]: resolved localhost to ["::1","127.0.0.1"]
[1591964809.465][INFO]: Waiting for pending navigations...
[1591964809.470][INFO]: Done waiting for pending navigations. Status: ok
[1591964985.086][SEVERE]: Unable to receive message from renderer
[1591964985.087][INFO]: Waiting for pending navigations...
[1591964985.087][INFO]: Done waiting for pending navigations. Status: disconnected: not connected to DevTools
[1591964985.087][INFO]: [04ec2437c884f806389647d100186134] RESPONSE Navigate ERROR unknown error: cannot determine loading status
from disconnected: Unable to receive message from renderer
  (Session info: chrome=83.0.4103.97)
[1591964985.087][INFO]: [04ec2437c884f806389647d100186134] COMMAND ExecuteScript {
   "args": [  ],
   "script": "return document.readyState"
}

 

Link to post
Share on other sites
#include "wd_core.au3"
#include "wd_helper.au3"
#include <GuiComboBoxEx.au3>
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>
#include <WindowsConstants.au3>

$_WD_DEBUG = $_WD_DEBUG_Info

Global $buttonpressed
$buttonpressed = MsgBox(4, "Choice", "Ist es der erste Montag im Monat?")
_WD_Shutdown()

Local $sDesiredCapabilities, $sSession
SetupChrome()
_WD_Startup()
$sSession = _WD_CreateSession($sDesiredCapabilities)



;Login
_WD_NewTab($sSession)
_WD_Navigate($sSession, "http:/xxxxx.de/lauf_id=302")

_WD_Shutdown()


Func SetupChrome()
    _WD_Option('Driver', 'chromedriver.exe')
    _WD_Option('Port', 9515)
    _WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"')
    $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":["disable-infobars"]}}}}'
EndFunc

I cropped my code, so i can post him!

This is the Debug output!
 

>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\MondayRoutine - Kopie.au3"    
_WD_IsLatestRelease: 
_WD_IsLatestRelease ==> Send / Recv error
_WDStartup: OS: WIN_7 WIN32_NT 7601 Service Pack 1
_WDStartup: AutoIt: 3.3.14.5
_WDStartup: WD.au3: 0.3.0.1 (Update status unknown [6])
_WDStartup: WinHTTP:    1.6.4.2
_WDStartup: Driver: chromedriver.exe
_WDStartup: Params: --log-path="C:\chrome.log"
_WDStartup: Port:   9515
__WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":["disable-infobars"]}}}}
__WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"83.0....
_WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"83.0.4103.97","chrome":{"chromedriverVersion":"83.0.4103.39 (ccbf011cb2d2b19b506d844400483861342c20cd-refs/branch-heads/4103@{#416})","userDataDir":"C:\\scoped_dir3588_659145642"},"goog:chromeOptions":{"debuggerAddress":"localhost:65109"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:virtualAuthenticators":true},"sessionId":"2353bf8ae9ceaa7681f41d9cf7edcd06"}}
__WD_Get: URL=HTTP://127.0.0.1:9515/session/2353bf8ae9ceaa7681f41d9cf7edcd06/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-8C061A00CB5AE3BD37864660A2F312F1"]}...
_WD_Window: {"value":["CDwindow-8C061A00CB5AE3BD37864660A2F312F1"]}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/2353bf8ae9ceaa7681f41d9cf7edcd06/window
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":"CDwindow-8C061A00CB5AE3BD37864660A2F312F1"}...
_WD_Window: {"value":"CDwindow-8C061A00CB5AE3BD37864660A2F312F1"}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/2353bf8ae9ceaa7681f41d9cf7edcd06/execute/sync; $sData={"script":"window.open(arguments[0], '', arguments[1])", "args":["",""]}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_ExecuteScript: {"value":null}...
__WD_Get: URL=HTTP://127.0.0.1:9515/session/2353bf8ae9ceaa7681f41d9cf7edcd06/window/handles
__WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":["CDwindow-8C061A00CB5AE3BD37864660A2F312F1","CDwindow-916ABE0DE94BDFEC5EF0142754A71F8F"]}...
_WD_Window: {"value":["CDwindow-8C061A00CB5AE3BD37864660A2F312F1","CDwindow-916ABE0DE94BDFEC5EF0142754A71F8F"]}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/2353bf8ae9ceaa7681f41d9cf7edcd06/window; $sData={"handle":"CDwindow-916ABE0DE94BDFEC5EF0142754A71F8F"}
__WD_Post: StatusCode=200; ResponseText={"value":null}...
_WD_Window: {"value":null}...
__WD_Post: URL=HTTP://127.0.0.1:9515/session/2353bf8ae9ceaa7681f41d9cf7edcd06/url; $sData={"url":"http:/xxxx.de/lauf_id=302"}
__WD_Post: StatusCode=0; ResponseText=0...
__WD_Post ==> Send / Recv error
_WD_Navigate: 0
_WD_Navigate ==> Send / Recv error: HTTP status = 0
>Exit code: 0    Time: 34.52

 

Edited by Bosco
Link to post
Share on other sites

@Bosco Can you retry your script using the updated Webdriver UDF (0.3.0.2 was released last night)? Some things to note --

  1. There are two sets of timeout values (Webdriver and WinHTTP)
  2. I fixed an issue with properly setting the WinHTTP timeouts
  3. You want the WinHTTP timeouts to be greater than the Webdriver timeouts

If #3 is off, then you will still get the Send / Recv error like before. Here's an example showing the updated error message --

__WD_Post: URL=HTTP://127.0.0.1:4444/session/612c73c8-f4f2-4806-87ec-795a629e8144/url; $sData={"url":"https://engadget.com"}
__WD_Post: StatusCode=0; ResponseText=WinHTTP request timed out before Webdriver...
__WD_Post ==> Send / Recv error: WinHTTP request timed out before Webdriver
_WD_Navigate: WinHTTP request timed out before Webdriver
_WD_Navigate ==> Send / Recv error: HTTP status = 0

I will likely create another helper function to allow you to control these timeout "sets" in unison, but for now you will need to manually extend the WinHTTP timeout (see my earlier post) if you run into the navigate issue.

Link to post
Share on other sites
On 6/12/2020 at 9:04 AM, Bosco said:

Isnt there an other option to open a website then with -WD_Navigate?

Another thing you could try is to use the following as part of your DesiredCapabilities setting

"pageLoadStrategy":"none"

This will allow _WD_Navigate to return to the calling routine before the webpage has actually loaded. You would need to use _WD_LoadWait or another mechanism of your choice to monitor the page to determine when it has finished loading.

PS - The available pageLoadStrategy settings can be found here

PPS - There are prior examples of using pageLoadStrategy on the forum, so use the search feature if you need an example of how to implement

Link to post
Share on other sites
On 6/13/2020 at 1:37 PM, Danp2 said:

@Bosco Can you retry your script using the updated Webdriver UDF (0.3.0.2 was released last night)? Some things to note --

  1. There are two sets of timeout values (Webdriver and WinHTTP)
  2. I fixed an issue with properly setting the WinHTTP timeouts
  3. You want the WinHTTP timeouts to be greater than the Webdriver timeouts

If #3 is off, then you will still get the Send / Recv error like before. Here's an example showing the updated error message --

__WD_Post: URL=HTTP://127.0.0.1:4444/session/612c73c8-f4f2-4806-87ec-795a629e8144/url; $sData={"url":"https://engadget.com"}
__WD_Post: StatusCode=0; ResponseText=WinHTTP request timed out before Webdriver...
__WD_Post ==> Send / Recv error: WinHTTP request timed out before Webdriver
_WD_Navigate: WinHTTP request timed out before Webdriver
_WD_Navigate ==> Send / Recv error: HTTP status = 0

I will likely create another helper function to allow you to control these timeout "sets" in unison, but for now you will need to manually extend the WinHTTP timeout (see my earlier post) if you run into the navigate issue.

Its exactly this!

Pushed the WinHTTP Timout to the limits, now it works! Awesome! u helped me so much! Thx!

My Script is finished and it works liek a charme!

Link to post
Share on other sites

if i want to build the same thing for Firefox, what do i need to change?

These r my chrome capabilites:

$sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "args":["disable-infobars"]}}}}'

what is the same for gecko?

Is this enough?

$sDesiredCapabilities = '{"desiredCapabilities":{"javascriptEnabled":true,"nativeEvents":true,"acceptInsecureCerts":true}}'

 

Link to post
Share on other sites

Seems like it isnt enough:D

It doesnt wait for the Websites to load, it just fires the whole code!

I copied the GeckoSetup from ur Demo!

__WD_Post: URL=HTTP://127.0.0.1:4444/session/9515afeb-eb24-4cf5-ba76-a2e12ef0549f/element; $sData={"using":"partial link text","value":"Prozess"}
__WD_Post: StatusCode=404; ResponseText={"value":{"error":"no such element","message":"Unable to locate element: Prozess","stacktrace":"WebD...
_WD_FindElement: {"value":{"error":"no such element","message":"Unable to locate element: Prozess","stacktrace":"WebDriverError@chrome://marionette/content/error.js:175:5\nNoSuchElementError@chrome://marionette/content/error.js:387:5\nelement.find/</<@chrome://marionette/content/element.js:331:16\n"}}
_WD_FindElement ==> No match: HTTP status = 404
_WD_LinkClickByText ==> No match
__WD_Post: URL=HTTP://127.0.0.1:4444/session/9515afeb-eb24-4cf5-ba76-a2e12ef0549f/element; $sData={"using":"partial link text","value":"zurücksetzen"}
__WD_Post: StatusCode=404; ResponseText={"value":{"error":"no such element","message":"Unable to locate element: zurücksetzen","stacktrace":...
_WD_FindElement: {"value":{"error":"no such element","message":"Unable to locate element: zurücksetzen","stacktrace":"WebDriverError@chrome://marionette/content/error.js:175:5\nNoSuchElementError@chrome://marionette/content/error.js:387:5\nelement.find/</<@chrome://marionette/content/element.js:331:16\n"}}
_WD_FindElement ==> No match: HTTP status = 404
_WD_LinkClickByText ==> No match

 

Link to post
Share on other sites

It works now! Dont know where the problem was. But after i copied the code to a new .au3 file it worked!

__WD_Post: URL=HTTP://127.0.0.1:4444/session/1a2d1330-5f56-4e56-b99b-d0b8aa1948d1/url; $sData={"url":"http://xxxx.de//lauf_id=1201"}
__WD_Post: StatusCode=500; ResponseText={"value":{"error":"timeout","message":"Timeout loading page after 300000ms","stacktrace":"WebDriverE...
__WD_Post ==> Timeout: {"value":{"error":"timeout","message":"Timeout loading page after 300000ms","stacktrace":"WebDriverError@chrome://marionette/content/error.js:175:5\nTimeoutError@chrome://marionette/content/error.js:444:5\nnotify@chrome://marionette/content/listener.js:368:11\n"}}
_WD_Navigate: {"value":{"error":"timeout","message":"Timeout loading page after 300000ms","stacktrace":"WebDriverError@chrome://marionette/content/error.js:175:5\nTimeoutError@chrome://marionette/content/error.js:444:5\nnotify@chrome://marionette/content/listener.js:368:11\n"}}
_WD_Navigate ==> Timeout: HTTP status = 500

Why is there @chrome? Im using firefox :D

Any Idea, how to fix this? Is it possible that the Webdriver has a max Timeout time?

Edited by Bosco
Link to post
Share on other sites
  • 4 months later...

For anyone trying to diagnose an error:

 

Send / Recv error: WinHTTP request timed out before Webdriver

It was mentioned earlier about the timeout values but my particular case was that I made a folder of UDF's read only which included the chrome.log file.  After I was scratching my head trying to figure out what was going on, I remembered I just locked down that folder. I removed the read-only attribute from the chrome.log file and voila it worked again.  

This might be similar to firefox if it creates a log file.

Just  a heads up.

 

Thanks @Danp2 for all your help!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...