ReM Posted May 1, 2021 Share Posted May 1, 2021 Hallo Experts, Your testsite and the examples are very good. Thanks a lot. I used your example with Chromewebdriver. The Chrome Browser open, the site will shown, but all other functions not executed. The Chomedriver.exe Windows shows this text: Starting ChromeDriver 90.0.4430.24 (4c6d850f087da467d926e8eddb76550aed655991-refs/branch-heads/4430@{#429}) on port 9515 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. DevTools listening on ws://127.0.0.1:54044/devtools/browser/3c17aefd-a104-43e7-8c17-318963cda872 [12848:3100:0501/153128.889:ERROR:device_event_log_impl.cc(214)] [15:31:28.888] USB: usb_device_handle_win.cc:1054 Failed to read descriptor from node connection: Ein an das System angeschlossenes Gerõt funktioniert nicht. (0x1F) [12848:3100:0501/153128.896:ERROR:device_event_log_impl.cc(214)] [15:31:28.896] USB: usb_device_handle_win.cc:1054 Failed to read descriptor from node connection: Ein an das System angeschlossenes Gerõt funktioniert nicht. (0x1F) The Error : A devise connected to the systen does not work (0x1F) Win 10 Chrome & Driver 90 What i do wrong. Can you help me? Reiner Link to comment Share on other sites More sharing options...
Danp2 Posted May 1, 2021 Share Posted May 1, 2021 Hi @ReM, I believe the information in the Chromedriver console is benign. I suggest that you show us your code (see here for the proper technique) along with the results from the Scite output panel. Regards, Dan P.S. Your post was forked since it wasn't an example. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
ReM Posted May 3, 2021 Author Share Posted May 3, 2021 Here is my code: ;Test webdriver #include "wd_core.au3" #include "wd_helper.au3" Global $sDriver ="C:\Program Files\Google\chromedriver.exe" Local $sDesiredCapabilities, $sSession SetupChrome() _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) _WD_Navigate($sSession, "http://demo.guru99.com/test/simple_context_menu.html") Sleep(2000) $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//button[contains(text(),'Double-Click Me To See Alert')]") If @error = $_WD_ERROR_Success Then _WD_ElementActionEx($sSession, $sElement, "doubleclick") MsgBox(16,"Test 01","Zeile 18") EndIf _WD_Alert($sSession, 'accept') Func SetupChrome() _WD_Option('Driver', $sDriver) _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 ;==>SetupChrome Scite output panel: expandcollapse popup>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\Users\u4006\Documents\Autolt\Test_Webdriver_01.au3" /UserParams +>10:39:38 Starting AutoIt3Wrapper (19.1127.1402.0} from:SciTE.exe (4.2.0.0) Keyboard:00000407 OS:WIN_10/ CPU:X64 OS:X64 Environment(Language:0407) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\u4006\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\u4006\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.14.5) from:C:\Program Files (x86)\AutoIt3 input:C:\Users\u4006\Documents\Autolt\Test_Webdriver_01.au3 +>10:39:38 AU3Check ended.rc:0 >Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\u4006\Documents\Autolt\Test_Webdriver_01.au3" +>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+BREAK to Stop. _WD_IsLatestRelease: False _WD_IsLatestRelease ==> Success _WD_Startup: OS: WIN_10 WIN32_NT 17763 _WD_Startup: AutoIt: 3.3.14.5 _WD_Startup: WD.au3: 0.4.0.2 (Update available) _WD_Startup: WinHTTP: 1.6.4.1 (Download latest source at <https://raw.githubusercontent.com/dragana-r/autoit-winhttp/master/WinHttp.au3>) _WD_Startup: Driver: C:\Program Files\Google\chromedriver.exe _WD_Startup: Params: --log-path="C:\Users\u4006\Documents\Autolt\chrome.log" _WD_Startup: 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":"90.0.... _WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"90.0.4430.85","chrome":{"chromedriverVersion":"90.0.4430.24 (4c6d850f087da467d926e8eddb76550aed655991-refs/branch-heads/4430@{#429})","userDataDir":"C:\\Users\\u4006\\AppData\\Local\\Temp\\scoped_dir6712_1748131622"},"goog:chromeOptions":{"debuggerAddress":"localhost:56716"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:extension:largeBlob":true,"webauthn:virtualAuthenticators":true},"sessionId":"a028f603c90cee6aeea0a342b98c2be8"}} __WD_Post: URL=HTTP://127.0.0.1:9515/session/a028f603c90cee6aeea0a342b98c2be8/url; $sData={"url":"http://demo.guru99.com/test/simple_context_menu.html"} __WD_Post: StatusCode=200; ResponseText={"value":null}... _WD_Navigate: {"value":null} __WD_Post: URL=HTTP://127.0.0.1:9515/session/a028f603c90cee6aeea0a342b98c2be8/element; $sData={"using":"xpath","value":"//button[contains(text(),'Double-Click Me To See Alert')]"} __WD_Post: StatusCode=200; ResponseText={"value":{"element-6066-11e4-a52e-4f735466cecf":"5b43fe9d-19fe-4764-a41d-8d44e4920f5d"}}... _WD_FindElement: {"value":{"element-6066-11e4-a52e-4f735466cecf":"5b43fe9d-19fe-4764-a41d-8d44e4920f5d"}} __WD_Post: URL=HTTP://127.0.0.1:9515/session/a028f603c90cee6aeea0a342b98c2be8/actions; $sData={"actions":[{"id":"hover","type":"pointer","parameters":{"pointerType":"mouse"},"actions":[{"duration":100,"x":0,"y":0,"type":"pointerMove","origin":{"ELEMENT":"5b43fe9d-19fe-4764-a41d-8d44e4920f5d","element-6066-11e4-a52e-4f735466cecf":"5b43fe9d-19fe-4764-a41d-8d44e4920f5d"}},{"button":0,"type":"pointerDown"},{"button":0,"type":"pointerUp"},{"button":0,"type":"pointerDown"},{"button":0,"type":"pointerUp"}]}]}]} __WD_Post: StatusCode=400; ResponseText={"value":{"error":"invalid argument","message":"invalid argument: missing command parameters","stack... __WD_Post ==> Invalid argument: {"value":{"error":"invalid argument","message":"invalid argument: missing command parameters","stacktrace":"Backtrace:\n\tOrdinal0 [0x0056C013+2474003]\n\tOrdinal0 [0x005029C1+2042305]\n\tOrdinal0 [0x00412F68+1060712]\n\tOrdinal0 [0x00455003+1331203]\n\tOrdinal0 [0x003F4F3F+937791]\n\tOrdinal0 [0x003F5446+939078]\n\tOrdinal0 [0x003F5721+939809]\n\tGetHandleVerifier [0x006F96FC+1590332]\n\tGetHandleVerifier [0x007A8614+2306900]\n\tGetHandleVerifier [0x005F9E93+543699]\n\tGetHandleVerifier [0x005F92CE+540686]\n\tOrdinal0 [0x005086BA+2066106]\n\tOrdinal0 [0x003F4CD0+937168]\n\tOrdinal0 [0x003F4688+935560]\n\tGetHandleVerifier [0x007D494C+2487948]\n\tBaseThreadInitThunk [0x753E0419+25]\n\tRtlGetAppContainerNamedObjectPath [0x772474ED+237]\n\tRtlGetAppContainerNamedObjectPath [0x772474BD+189]\n"}} _WD_Action: {"value":{"error":"invalid argument","message":"invalid argument: missing command parameters","stacktrace":"Backtrace:\n\tOrdinal0 [0x0056C013+2474003]\n\tOrdinal0 [0x005029C1+2042305]\n\tOrdinal0 [0x00412F68+1060712]\n\tOrdinal0 [0x00455003+1331203]\n\tOrdinal0 [0x003F4F3F+937791]\n\tOrdinal0 [0x003F5446+939078]\n\tOrdinal0 [0x003F5721+939809]\n\tGetHandleVerifier [0x006F96FC+1590332]\n\tGetHandleVerifier [0x007A8614+2306900]\n\tGetHandleVerifier [0x005F9E93+543699]\n\tGetHandleVerifier [0x005F92CE+540686]\n\tOrdinal0 [0x005086BA+2066106]\n\tOrdinal0 [0x003F4CD0+937168]\n\tOrdinal0 [0x003F4688+935560]\n\tGetHandleVerifier [0x007D494C+2487948]\n\tBaseThreadInitThunk [0x753E0419+25]\n\tRtlGetAppContainerNamedObjectPath [0x772474ED+237]\n\tRtlGetAppContainerNamedObjectPath [0x772474BD+189]\n"}} _WD_Action ==> Invalid argument: HTTP status = 400 _WD_ElementActionEx ==> Invalid argument __WD_Post: URL=HTTP://127.0.0.1:9515/session/a028f603c90cee6aeea0a342b98c2be8/alert/accept; $sData={} __WD_Post: StatusCode=404; ResponseText={"value":{"error":"no such alert","message":"no such alert\n (Session info: chrome=90.0.4430.85)","... __WD_Post ==> Webdriver Exception: {"value":{"error":"no such alert","message":"no such alert\n (Session info: chrome=90.0.4430.85)","stacktrace":"Backtrace:\n\tOrdinal0 [0x0056C013+2474003]\n\tOrdinal0 [0x005029C1+2042305]\n\tOrdinal0 [0x00412E30+1060400]\n\tOrdinal0 [0x0040CABB+1034939]\n\tOrdinal0 [0x00422841+1124417]\n\tOrdinal0 [0x0045687C+1337468]\n\tOrdinal0 [0x00422356+1123158]\n\tOrdinal0 [0x004566DB+1337051]\n\tOrdinal0 [0x00433427+1192999]\n\tOrdinal0 [0x004342EE+1196782]\n\tOrdinal0 [0x00434279+1196665]\n\tGetHandleVerifier [0x006F96FC+1590332]\n\tGetHandleVerifier [0x007A8614+2306900]\n\tGetHandleVerifier [0x005F9E93+543699]\n\tGetHandleVerifier [0x005F92CE+540686]\n\tOrdinal0 [0x005086BA+2066106]\n\tOrdinal0 [0x0050D1C8+2085320]\n\tOrdinal0 [0x0050D308+2085640]\n\tOrdinal0 [0x005167F3+2123763]\n\tBaseThreadInitThunk [0x753E0419+25]\n\tRtlGetAppContainerNamedObjectPath [0x772474ED+237]\n\tRtlGetAppContainerNamedObjectPath [0x772474BD+189]\n"}} _WD_Alert: {"value":{"error":"no such alert","message":"no such alert\n (Session info: chrome=90.0.4430.85)","stacktrace":"Backtrace:\n\tOrdinal0 [0x0056C013+2474003]\n\tOrdinal0 [0x005029C1+2042305]\n\tOrdinal0 [0x00412E30+1060400]\n\tOrdinal0 [0x0040CABB+1034939]\n\tOrdinal0 [0x00422841+1124417]\n\tOrdinal0 [0x0045687C+1337468]\n\tOrdinal0 [0x00422356+1123158]\n\tOrdinal0 [0x004566DB+1337051]\n\tOrdinal0 [0x00433427+1192999]\n\tOrdinal0 [0x004342EE+1196782]\n\tOrdinal0 [0x00434279+1196665]\n\tGetHandleVerifier [0x006F96FC+1590332]\n\tGetHandleVerifier [0x007A8614+2306900]\n\tGetHandleVerifier [0x005F9E93+543699]\n\tGetHandleVerifier [0x005F92CE+540686]\n\tOrdinal0 [0x005086BA+2066106]\n\tOrdinal0 [0x0050D1C8+2085320]\n\tOrdinal0 [0x0050D308+2085640]\n\tOrdinal0 [0x005167F3+2123763]\n\tBaseThreadInitThunk [0x753E0419+25]\n\tRtlGetAppContainerNamedObjectPath [0x772474ED+237]\n\tRtlGetAppContainerNamedObjectPath [0x772474BD+189]\n"}} _WD_Alert ==> Webdriver Exception: {"value":{"error":"no such alert","message":"no such alert\n (Session info: chrome=90.0.4430.85)","stacktrace":"Backtrace:\n\tOrdinal0 [0x0056C013+2474003]\n\tOrdinal0 [0x005029C1+2042305]\n\tOrdinal0 [0x00412E30+1060400]\n\tOrdinal0 [0x0040CABB+1034939]\n\tOrdinal0 [0x00422841+1124417]\n\tOrdinal0 [0x0045687C+1337468]\n\tOrdinal0 [0x00422356+1123158]\n\tOrdinal0 [0x004566DB+1337051]\n\tOrdinal0 [0x00433427+1192999]\n\tOrdinal0 [0x004342EE+1196782]\n\tOrdinal0 [0x00434279+1196665]\n\tGetHandleVerifier [0x006F96FC+1590332]\n\tGetHandleVerifier [0x007A8614+2306900]\n\tGetHandleVerifier [0x005F9E93+543699]\n\tGetHandleVerifier [0x005F92CE+540686]\n\tOrdinal0 [0x005086BA+2066106]\n\tOrdinal0 [0x0050D1C8+2085320]\n\tOrdinal0 [0x0050D308+2085640]\n\tOrdinal0 [0x005167F3+2123763]\n\tBaseThreadInitThunk [0x753E0419+25]\n\tRtlGetAppContainerNamedObjectPath [0x772474ED+237]\n\tRtlGetAppContainerNamedObjectPath [0x772474BD+189]\n"}} +>10:39:52 AutoIt3.exe ended.rc:0 +>10:39:52 AutoIt3Wrapper Finished. Regards Reiner Link to comment Share on other sites More sharing options...
Nine Posted May 3, 2021 Share Posted May 3, 2021 You need to update both WebDriver AND WinHTTP. See Danp2 signature to find latest versions. ReM and Danp2 1 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Danp2 Posted May 3, 2021 Share Posted May 3, 2021 As @Nine pointed out, a fix in the latest UDF version should resolve the issue with _WD_ElementActionEx. It's important that you update WinHTTP source as well. ReM 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
ReM Posted May 3, 2021 Author Share Posted May 3, 2021 Every think is fine after update. Thank you very much Reiner Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now