Danp2 Posted February 22, 2023 Author Share Posted February 22, 2023 @mLipokThanks for sharing the results with the forum. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
mLipok Posted February 23, 2023 Share Posted February 23, 2023 I have a question: Can we somehow use "window.chrome.webview" from the WebDriver + JavaScript level and will there be any benefits from it? Related information: https://github.com/MicrosoftEdge/WebView2Announcements/issues/61 Quote We have published API reference for window.chrome.webview JavaScript APIs which you can use along with native WebView2 APIs to communicate between native code and web code. Please leave any feedback in our WebView2Feedback repo. Thanks! Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Danp2 Posted February 23, 2023 Author Share Posted February 23, 2023 @mLipokI imagine that you could do it, but I'm unsure if there's any real benefit. You may want to take a look at the Webdriver BiDi implementation, which includes many low level routines including event listeners. mLipok 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
mLipok Posted February 23, 2023 Share Posted February 23, 2023 Thanks for answer. Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Tipulatoid Posted February 24, 2023 Share Posted February 24, 2023 (edited) Hello. I have an issue and can't figure out where is the point. Here is my code: expandcollapse popup#include-once #include "Include\wd_capabilities.au3" ; https://www.autoitscript.com/wiki/WebDriver #include "Include\wd_helper.au3" ; https://www.autoitscript.com/wiki/WebDriver Local $bWDIsStarted = False, $bEdgeIsRunning = False, $bSKRnDSiteIsOpened = False _EdgeStart() _EdgeClose() Func _SetupEdge() Local $sDriverPath = @ScriptDir & "\bin\" If @OSArch = "X64" Or @OSArch = "IA64" Then $sDriverPath &= "msedgedriver_win64.exe" ElseIf @OSArch = "X86" Then $sDriverPath &= "msedgedriver_win32.exe" EndIf _WD_Option('Driver', $sDriverPath) _WD_Option('Port', 9515) If _GetPref ("bSK_EnableWebDriverLog") = 1 Then _WD_Option('DriverParams', '--verbose --log-path="' & @ScriptDir & '\msedge.log"') ; ведение лога _WD_CapabilitiesStartup() _WD_CapabilitiesAdd('alwaysMatch', 'msedge') _WD_CapabilitiesAdd('excludeSwitches', 'enable-automation') _WD_CapabilitiesAdd('args', '--inprivate') _WD_CapabilitiesAdd('args', 'user-data-dir=' & StringReplace(_GetPref("SK_EdgeDataDir"), "\", "\\")) _WD_CapabilitiesAdd('args', 'profile-directory=Default') If _GetPref("bSK_Run_Browser_Headless") = 1 Then _WD_CapabilitiesAdd('args', '--headless') _WD_CapabilitiesDump(@ScriptLineNumber) ; dump current Capabilities setting to console - only for testing in this demo Local $sCapabilities = _WD_CapabilitiesGet() Return $sCapabilities EndFunc ;==>_SetupEdge Func _GetPref ($sPref) If $sPref = "bSK_EnableWebDriverLog" Then Return 1 ElseIf $sPref = "bSK_Run_Browser_Headless" Then Return 0 ElseIf $sPref = "SK_EdgeDataDir" Then Return @ScriptDir & "\Edge_data" ElseIf $sPref = "URL" Then Return "https://www.google.com/" EndIf EndFunc ; _GetPref Func _EdgeStart() ;~ $_WD_DEBUG = $_WD_DEBUG_None ; закомментить при отладке Local $sDesiredCapabilities = _SetupEdge() Global $iWebDriver_PID = _WD_Startup() If $iWebDriver_PID <> 0 Then $bWDIsStarted = True Global $sSession = _WD_CreateSession($sDesiredCapabilities) If $sSession <> "" Then $bEdgeIsRunning = True _WD_Navigate($sSession, _GetPref("URL")) _WD_LoadWait($sSession) Local $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "/html/body/div[1]/div[3]/form/div[1]/div[1]/div[4]/center/input[2]") If @error = $_WD_ERROR_Success Then $bSKRnDSiteIsOpened = True EndIf EndIf EndFunc ;_EdgeStart() Func _EdgeClose() If $bSKRnDSiteIsOpened Then $bSKRnDSiteIsOpened = False EndIf If $bEdgeIsRunning Then _WD_DeleteSession($sSession) $bEdgeIsRunning = False EndIf If $bWDIsStarted Then _WD_Shutdown($iWebDriver_PID) $bWDIsStarted = False EndIf EndFunc ;_EdgeClose() It works great if I run it from Scite (launches Edge, navigates to https://www.google.com/ , waits for element and then closes browser). But if i run compiled version, it launches Edge and afer that (it seems to me) driver loose connection to Edge. Nothing else happens - neither navigating to https://www.google.com/ , nor closing browser. Last few lines in log file: [1677229307.181][INFO]: Launching Microsoft Edge: "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --allow-pre-commit-input --disable-background-networking --disable-backgrounding-occluded-windows --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-blink-features=ShadowDOMV0 --enable-logging --inprivate --log-level=0 --no-first-run --no-service-autorun --password-store=basic --profile-directory=Default --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir="D:\\Projects\\AutoIt\\REC\\Project_2\\src\\Edge_data" [1677229308.234][INFO]: [56534bb3c01549333e8eb8db189bf08d] RESPONSE InitSession ERROR unknown error: Microsoft Edge failed to start: was killed. (unknown error: DevToolsActivePort file doesn't exist) (The process started from msedge location C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe is no longer running, so msedgedriver is assuming that msedge has crashed.) [1677229308.234][DEBUG]: Log type 'driver' lost 0 entries on destruction [1677229308.234][DEBUG]: Log type 'browser' lost 0 entries on destruction Could you help me with this issue, please? Edited February 24, 2023 by Tipulatoid Link to comment Share on other sites More sharing options...
Danp2 Posted February 24, 2023 Author Share Posted February 24, 2023 2 hours ago, Tipulatoid said: It works great if I run it from Scite (launches Edge, navigates to https://www.google.com/ , waits for element and then closes browser). But if i run compiled version, it launches Edge and afer that (it seems to me) driver loose connection to Edge. Nothing else happens - neither navigating to https://www.google.com/ , nor closing browser. I haven't tried your code yet, but I wonder if there is something different in the environment, such as working directory, when running the compiled version. 2 hours ago, Tipulatoid said: [1677229308.234][INFO]: [56534bb3c01549333e8eb8db189bf08d] RESPONSE InitSession ERROR unknown error: Microsoft Edge failed to start: was killed. (unknown error: DevToolsActivePort file doesn't exist) What versions of MSEdge and Edgedriver are you running? I've seen this error discussed previously on the net, but I don't recall the solution off hand. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Tipulatoid Posted February 24, 2023 Share Posted February 24, 2023 5 minutes ago, Danp2 said: I haven't tried your code yet, but I wonder if there is something different in the environment, such as working directory, when running the compiled version. I run exe file from the same folder where au3 is. 6 minutes ago, Danp2 said: What versions of MSEdge and Edgedriver are you running? I've seen this error discussed previously on the net, but I don't recall the solution off hand. Microsoft Edge 110.0.1587.50 Microsoft Edge WebDiver 110.0.1587.49 Link to comment Share on other sites More sharing options...
mLipok Posted February 24, 2023 Share Posted February 24, 2023 (edited) Give us Capabilities dump from non compiled and compiled version. Focus on 32/64 bitness issues especially on: Local $sDriverPath = @ScriptDir & "\bin\" If @OSArch = "X64" Or @OSArch = "IA64" Then $sDriverPath &= "msedgedriver_win64.exe" ElseIf @OSArch = "X86" Then $sDriverPath &= "msedgedriver_win32.exe" EndIf and try to force 32/64 bit AutoIt for both compilled not compiled version with: #AutoIt3Wrapper_UseX64=N Check each scenario. Edited February 24, 2023 by mLipok Danp2 1 Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Danp2 Posted February 24, 2023 Author Share Posted February 24, 2023 @TipulatoidYou could also try logging to a file for further analysis by adding something like this to your script -- $sLogFile = "webdriver_" & (@Compiled ? "compiled" : "noncompiled") & (@AutoItX64 ? "_x64" : "_x32") & '.log' _WD_Option('console', $sLogFile) Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Tipulatoid Posted February 25, 2023 Share Posted February 25, 2023 (edited) webdriver_noncompiled_x32_driver_used_msedgedriver_win64.exe_script_compiled_as_not_compiled.log expandcollapse popup_WD_Option ==> Success [0] : Parameters: Option=console Value=webdriver_noncompiled_x32_driver_used_msedgedriver_win64.exe_script_compiled_as_not_compiled.log _WD_Option ==> Success [0] : Parameters: Option=Driver Value=D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win64.exe _WD_Option ==> Success [0] : Parameters: Option=Port Value=9515 _WD_Option ==> Success [0] : Parameters: Option=DriverParams Value=--verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_CapabilitiesAdd ==> Success [0] : Successfully used [alwaysMatch] with specified browser: msedge _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesDump: JSON structure starts below: 46 { "capabilities":{ "alwaysMatch":{ "ms:edgeOptions":{ "excludeSwitches":[ "enable-automation" ], "args":[ "--inprivate", "user-data-dir=D:\\\\Projects\\\\AutoIt\\\\REC\\\\Project_2\\\\src\\\\Edge_data", "profile-directory=Default" ] } } } } _WD_CapabilitiesDump: JSON structure ends above. _WD_GetFreePort ==> Success [0] : 9515 _WD_IsLatestRelease ==> Success [0] : True _WD_Startup: OS: WIN_10 WIN32_NT 19045 _WD_Startup: AutoIt: 3.3.16.1 _WD_Startup: Webdriver UDF: 0.12.0 (Up to date) _WD_Startup: WinHTTP: 1.6.4.2 _WD_Startup: Driver: D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win64.exe (64 Bit) _WD_Startup: Params: --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup: Port: 9515 _WD_Startup: Command: "D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win64.exe" --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup ==> Success [0] __WD_Post ==> Success [0] : HTTP status = 200 _WD_CreateSession ==> Success [0] : ac5e9d8b45f99cf3a6f88948e5999a75 __WD_Post ==> Success [0] : HTTP status = 200 _WD_Navigate ==> Success [0] : Parameters: URL=https://www.google.com/ _WD_LoadWait ==> Success [0 / 4] : Parameters: Delay=Default Timeout=Default Element=Default DesiredState=complete : ReadyState= complete (Fully loaded) __WD_Post ==> Success [0] : HTTP status = 200 _WD_FindElement ==> Success [0] : Parameters: Strategy=xpath Selector=/html/body/div[1]/div[3]/form/div[1]/div[1]/div[4]/center/input[2] StartNodeID=Default Multiple=Default ShadowRoot=Default __WD_Delete ==> Success [0] : HTTP status = 200 _WD_DeleteSession ==> Success [0] : WebDriver session deleted webdriver_noncompiled_x32_driver_used_msedgedriver_win32.exe_script_compiled_as_not_compiled.log expandcollapse popup_WD_Option ==> Success [0] : Parameters: Option=console Value=webdriver_noncompiled_x32_driver_used_msedgedriver_win32.exe_script_compiled_as_not_compiled.log _WD_Option ==> Success [0] : Parameters: Option=Driver Value=D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win32.exe _WD_Option ==> Success [0] : Parameters: Option=Port Value=9515 _WD_Option ==> Success [0] : Parameters: Option=DriverParams Value=--verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_CapabilitiesAdd ==> Success [0] : Successfully used [alwaysMatch] with specified browser: msedge _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesDump: JSON structure starts below: 46 { "capabilities":{ "alwaysMatch":{ "ms:edgeOptions":{ "excludeSwitches":[ "enable-automation" ], "args":[ "--inprivate", "user-data-dir=D:\\\\Projects\\\\AutoIt\\\\REC\\\\Project_2\\\\src\\\\Edge_data", "profile-directory=Default" ] } } } } _WD_CapabilitiesDump: JSON structure ends above. _WD_GetFreePort ==> Success [0] : 9515 _WD_IsLatestRelease ==> Success [0] : True _WD_Startup: OS: WIN_10 WIN32_NT 19045 _WD_Startup: AutoIt: 3.3.16.1 _WD_Startup: Webdriver UDF: 0.12.0 (Up to date) _WD_Startup: WinHTTP: 1.6.4.2 _WD_Startup: Driver: D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win32.exe (32 Bit) _WD_Startup: Params: --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup: Port: 9515 _WD_Startup: Command: "D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win32.exe" --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup ==> Success [0] __WD_Post ==> Success [0] : HTTP status = 200 _WD_CreateSession ==> Success [0] : e18db0a381bcb9f1f44d30babc1d407c __WD_Post ==> Success [0] : HTTP status = 200 _WD_Navigate ==> Success [0] : Parameters: URL=https://www.google.com/ _WD_LoadWait ==> Success [0 / 4] : Parameters: Delay=Default Timeout=Default Element=Default DesiredState=complete : ReadyState= complete (Fully loaded) __WD_Post ==> Success [0] : HTTP status = 200 _WD_FindElement ==> Success [0] : Parameters: Strategy=xpath Selector=/html/body/div[1]/div[3]/form/div[1]/div[1]/div[4]/center/input[2] StartNodeID=Default Multiple=Default ShadowRoot=Default __WD_Delete ==> Success [0] : HTTP status = 200 _WD_DeleteSession ==> Success [0] : WebDriver session deleted webdriver_compiled_x32_driver_used_msedgedriver_win64.exe_script_compiled_as_x86.log expandcollapse popup_WD_Option ==> Success [0] : Parameters: Option=console Value=webdriver_compiled_x32_driver_used_msedgedriver_win64.exe_script_compiled_as_x86.log _WD_Option ==> Success [0] : Parameters: Option=Driver Value=D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win64.exe _WD_Option ==> Success [0] : Parameters: Option=Port Value=9515 _WD_Option ==> Success [0] : Parameters: Option=DriverParams Value=--verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_CapabilitiesAdd ==> Success [0] : Successfully used [alwaysMatch] with specified browser: msedge _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesDump: JSON structure starts below: -1 { "capabilities":{ "alwaysMatch":{ "ms:edgeOptions":{ "excludeSwitches":[ "enable-automation" ], "args":[ "--inprivate", "user-data-dir=D:\\\\Projects\\\\AutoIt\\\\REC\\\\Project_2\\\\src\\\\Edge_data", "profile-directory=Default" ] } } } } _WD_CapabilitiesDump: JSON structure ends above. _WD_GetFreePort ==> Success [0] : 9515 _WD_IsLatestRelease ==> Success [0] : True _WD_Startup: OS: WIN_10 WIN32_NT 19045 _WD_Startup: AutoIt: 3.3.16.1 _WD_Startup: Webdriver UDF: 0.12.0 (Up to date) _WD_Startup: WinHTTP: 1.6.4.2 _WD_Startup: Driver: D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win64.exe (64 Bit) _WD_Startup: Params: --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup: Port: 9515 _WD_Startup: Command: "D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win64.exe" --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup ==> Success [0] __WD_Post ==> Webdriver Exception [10] : HTTP status = 500 _WD_CreateSession ==> Webdriver Exception [10] webdriver_compiled_x32_driver_used_msedgedriver_win32.exe_script_compiled_as_x86.log expandcollapse popup_WD_Option ==> Success [0] : Parameters: Option=console Value=webdriver_compiled_x32_driver_used_msedgedriver_win32.exe_script_compiled_as_x86.log _WD_Option ==> Success [0] : Parameters: Option=Driver Value=D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win32.exe _WD_Option ==> Success [0] : Parameters: Option=Port Value=9515 _WD_Option ==> Success [0] : Parameters: Option=DriverParams Value=--verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_CapabilitiesAdd ==> Success [0] : Successfully used [alwaysMatch] with specified browser: msedge _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesDump: JSON structure starts below: -1 { "capabilities":{ "alwaysMatch":{ "ms:edgeOptions":{ "excludeSwitches":[ "enable-automation" ], "args":[ "--inprivate", "user-data-dir=D:\\\\Projects\\\\AutoIt\\\\REC\\\\Project_2\\\\src\\\\Edge_data", "profile-directory=Default" ] } } } } _WD_CapabilitiesDump: JSON structure ends above. _WD_GetFreePort ==> Success [0] : 9515 _WD_IsLatestRelease ==> Success [0] : True _WD_Startup: OS: WIN_10 WIN32_NT 19045 _WD_Startup: AutoIt: 3.3.16.1 _WD_Startup: Webdriver UDF: 0.12.0 (Up to date) _WD_Startup: WinHTTP: 1.6.4.2 _WD_Startup: Driver: D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win32.exe (32 Bit) _WD_Startup: Params: --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup: Port: 9515 _WD_Startup: Command: "D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win32.exe" --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup ==> Success [0] __WD_Post ==> Webdriver Exception [10] : HTTP status = 500 _WD_CreateSession ==> Webdriver Exception [10] webdriver_compiled_x64_driver_used_msedgedriver_win64.exe_script_compiled_as_x64.log expandcollapse popup_WD_Option ==> Success [0] : Parameters: Option=console Value=webdriver_compiled_x64_driver_used_msedgedriver_win64.exe_script_compiled_as_x64.log _WD_Option ==> Success [0] : Parameters: Option=Driver Value=D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win64.exe _WD_Option ==> Success [0] : Parameters: Option=Port Value=9515 _WD_Option ==> Success [0] : Parameters: Option=DriverParams Value=--verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_CapabilitiesAdd ==> Success [0] : Successfully used [alwaysMatch] with specified browser: msedge _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesDump: JSON structure starts below: -1 { "capabilities":{ "alwaysMatch":{ "ms:edgeOptions":{ "excludeSwitches":[ "enable-automation" ], "args":[ "--inprivate", "user-data-dir=D:\\\\Projects\\\\AutoIt\\\\REC\\\\Project_2\\\\src\\\\Edge_data", "profile-directory=Default" ] } } } } _WD_CapabilitiesDump: JSON structure ends above. _WD_GetFreePort ==> Success [0] : 9515 _WD_IsLatestRelease ==> Success [0] : True _WD_Startup: OS: WIN_10 WIN32_NT 19045 _WD_Startup: AutoIt: 3.3.16.1 _WD_Startup: Webdriver UDF: 0.12.0 (Up to date) _WD_Startup: WinHTTP: 1.6.4.2 _WD_Startup: Driver: D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win64.exe (64 Bit) _WD_Startup: Params: --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup: Port: 9515 _WD_Startup: Command: "D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win64.exe" --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup ==> Success [0] __WD_Post ==> Webdriver Exception [10] : HTTP status = 500 _WD_CreateSession ==> Webdriver Exception [10] webdriver_compiled_x64_driver_used_msedgedriver_win32.exe_script_compiled_as_x64.log expandcollapse popup_WD_Option ==> Success [0] : Parameters: Option=console Value=webdriver_compiled_x64_driver_used_msedgedriver_win32.exe_script_compiled_as_x64.log _WD_Option ==> Success [0] : Parameters: Option=Driver Value=D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win32.exe _WD_Option ==> Success [0] : Parameters: Option=Port Value=9515 _WD_Option ==> Success [0] : Parameters: Option=DriverParams Value=--verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_CapabilitiesAdd ==> Success [0] : Successfully used [alwaysMatch] with specified browser: msedge _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesAdd ==> Success [0] : Successfully added capability _WD_CapabilitiesDump: JSON structure starts below: -1 { "capabilities":{ "alwaysMatch":{ "ms:edgeOptions":{ "excludeSwitches":[ "enable-automation" ], "args":[ "--inprivate", "user-data-dir=D:\\\\Projects\\\\AutoIt\\\\REC\\\\Project_2\\\\src\\\\Edge_data", "profile-directory=Default" ] } } } } _WD_CapabilitiesDump: JSON structure ends above. _WD_GetFreePort ==> Success [0] : 9515 _WD_IsLatestRelease ==> Success [0] : True _WD_Startup: OS: WIN_10 WIN32_NT 19045 _WD_Startup: AutoIt: 3.3.16.1 _WD_Startup: Webdriver UDF: 0.12.0 (Up to date) _WD_Startup: WinHTTP: 1.6.4.2 _WD_Startup: Driver: D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win32.exe (32 Bit) _WD_Startup: Params: --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup: Port: 9515 _WD_Startup: Command: "D:\Projects\AutoIt\REC\Project_2\src\bin\msedgedriver_win32.exe" --verbose --log-path="D:\Projects\AutoIt\REC\Project_2\src\msedge.log" _WD_Startup ==> Success [0] __WD_Post ==> Webdriver Exception [10] : HTTP status = 500 _WD_CreateSession ==> Webdriver Exception [10] Edited February 25, 2023 by Tipulatoid Link to comment Share on other sites More sharing options...
Tipulatoid Posted February 25, 2023 Share Posted February 25, 2023 I have already switched to Firefox portable in my script, which works great. So, investigation of this issue is mostly for curiosity for me. And I want to thank authors of this great UDF. It is outstanding. Link to comment Share on other sites More sharing options...
mLipok Posted February 25, 2023 Share Posted February 25, 2023 8 hours ago, Tipulatoid said: I want to thank authors of this great UDF. It is outstanding. We are still working on new features Tipulatoid 1 Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
mLipok Posted February 25, 2023 Share Posted February 25, 2023 (edited) 8 hours ago, Tipulatoid said: .... webdriver_noncompiled_x32_driver_used_msedgedriver_win64.exe_script_compiled_as_not_compiled.log .... webdriver_noncompiled_x32_driver_used_msedgedriver_win32.exe_script_compiled_as_not_compiled.log ....webdriver_compiled_x64_driver_used_msedgedriver_win32.exe_script_compiled_as_x64.log ..... Do us a favor and save all this *.log to text file and zip them together, after that attach them here. We are busy, and sometimes lazy and we would not do this by our self. When we will have them as a file then it will be easy to compare them with https://winmerge.org/ Edited February 25, 2023 by mLipok Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Tipulatoid Posted February 25, 2023 Share Posted February 25, 2023 3 minutes ago, mLipok said: Do us a favor and save all this *.log to text file and zip them together, after that attach them here. We are bussy, and sometimes lazy and we would not do this by our self. Done Edge_logs.zip mLipok 1 Link to comment Share on other sites More sharing options...
Danp2 Posted February 25, 2023 Author Share Posted February 25, 2023 @TipulatoidSome questions for you -- Any chance this could be a rights issue? Is the D drive a local or network drive? How are you launching the compiled script? Have you tried running as Administrator? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Tipulatoid Posted February 25, 2023 Share Posted February 25, 2023 (edited) 44 minutes ago, Danp2 said: @TipulatoidSome questions for you -- Any chance this could be a rights issue? Is the D drive a local or network drive? How are you launching the compiled script? Have you tried running as Administrator? Wow! You are looking at the root (if it is correct to say in English)! I use Far Manager , which I love for its good old interface in style of Norton Commander and other possibilities. I always launch Far Manager with Admin rights, then I select exe file in it with arrow keys and hit enter. Now I tried to launch my compiled script from Windows explorer without admin rights - and it did all I want - opened google.com and then closed the browser! I also tried to launch it from Far Manager without Admin rights - and it worked too! I couldn't even imagine that this might be a point! So, the conclusion is that my compiled script doesn't work if it is launched with admin rights. As for question #2, drive D is local one. Thank you so much! Edited February 25, 2023 by Tipulatoid Link to comment Share on other sites More sharing options...
Danp2 Posted February 25, 2023 Author Share Posted February 25, 2023 @TipulatoidSo it would appear to be a rights issue, where the admin user doesn't have the ability to create a file in the directory specified by "user-data-dir". Tipulatoid 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
duke241 Posted February 27, 2023 Share Posted February 27, 2023 Hi everybody, I have a question. How to delete an element? (Delete, not hide). I can't find a function in Webdriver UDF to do that. Link to comment Share on other sites More sharing options...
mLipok Posted February 27, 2023 Share Posted February 27, 2023 4 minutes ago, duke241 said: Hi everybody, I have a question. How to delete an element? (Delete, not hide). I can't find a function in Webdriver UDF to do that. I lost my sight, I lost my sight. Can you please do not use such font to ask questions ? Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
seadoggie01 Posted February 27, 2023 Share Posted February 27, 2023 I highly suggest that whenever you can't find a way to do something with WebDriver UDF, you check JavaScript, then use the UDF to execute your JS In this case, I'd take a look at Element.remove() Danp2 1 All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types Link to comment Share on other sites More sharing options...
Recommended Posts