czmaster Posted February 8, 2022 Posted February 8, 2022 Hello, I want the browser work without ever showing it. With the old function _IECreate it was enough to set the $iVisible parameter to 0. Is there something equivalent with webdriver ? I'm not talking about the console but about the browser. I think it would be possible to do something with WinSetState, but I prefer if the browser never appear. If this function does not exist, I still thank you for your work TheDcoder 1
Danp2 Posted February 8, 2022 Author Posted February 8, 2022 @czmasterThis is covered in the FAQ of the wiki (see link in signature) Latest Webdriver UDF Release Webdriver Wiki FAQs
czmaster Posted February 8, 2022 Posted February 8, 2022 (edited) 10 minutes ago, Danp2 said: @czmasterThis is covered in the FAQ of the wiki (see link in signature) I already look the FAQ, but I only sea that we can hide the console and maximize the browser but no where hide the browser. What I want. Thank you. Edited February 8, 2022 by czmaster
rlvitorino Posted February 8, 2022 Posted February 8, 2022 Is there an example of how to use the "attach to edge chrome" command using Internet explorer in Edge??
Danp2 Posted February 8, 2022 Author Posted February 8, 2022 @rlvitorinoThis isn't the "support" thread. Please repost your question there (link's in my sig). P.S. I don't understand what you are asking so please restate the problem in the new thread so that we can hopefully offer a solution. Latest Webdriver UDF Release Webdriver Wiki FAQs
Danp2 Posted February 8, 2022 Author Posted February 8, 2022 1 hour ago, czmaster said: I already look the FAQ You didn't look close enough 😉 Latest Webdriver UDF Release Webdriver Wiki FAQs
mLipok Posted February 8, 2022 Posted February 8, 2022 3 hours ago, Danp2 said: You didn't look close enough 😉 maybe we need to change this description .....headless mode (hidden) 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
SOLVE-SMART Posted February 9, 2022 Posted February 9, 2022 Hi @mLipok, 7 hours ago, mLipok said: maybe we need to change this description .....headless mode (hidden) Agreed 👍 . Most of the people who ask for help regarding WebDriver automation doesn't know about the specific terms. In this specific case the phrase "How to run the browser hidden or invisible" would be much more the expected search, in my opinion. Or even more search friendly: "How to run the browser hidden or invisible (headless)". I am sure we will further discuss about the FAQs and their content in the GitHub issue (regarding the upcoming 🤞 ReadMe change). Best regards Sven ________________Stay innovative! Stay innovative! Spoiler 🌍 Au3Forums 🎲 AutoIt (en) Cheat Sheet 📊 AutoIt limits/defaults 💎 Code Katas: [...] (comming soon) 🎭 Collection of GitHub users with AutoIt projects 🐞 False-Positives 🔮 Me on GitHub 💬 Opinion about new forum sub category 📑 UDF wiki list ✂ VSCode-AutoItSnippets 📑 WebDriver FAQs 👨🏫 WebDriver Tutorial (coming soon)
czmaster Posted February 9, 2022 Posted February 9, 2022 13 hours ago, Danp2 said: You didn't look close enough 😉 I had seen this Headless mode, but actually I hadn't understood that it corresponded to a hidden mode. I was rather thinking that it would display a web page without the address bar and without any menu. Anyway I have my answer, thank you. SOLVE-SMART 1
rlvitorino Posted February 9, 2022 Posted February 9, 2022 @Danp2 What I'm looking to do is in this link. https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/ie-mode?tabs=python I would like to do this in webdriver with autoit. You can access pages by emulating Internet Explorer on EDGE, without using IE. TheDcoder 1
Danp2 Posted February 9, 2022 Author Posted February 9, 2022 @rlvitorinoThanks for the link. This isn't something that I've tried thus far, but I imagine that you could get it to work with the correct Capabilities string. Give it a shot and let us know your progress. Latest Webdriver UDF Release Webdriver Wiki FAQs
mLipok Posted February 10, 2022 Posted February 10, 2022 On 2/9/2022 at 8:44 AM, SOLVE-SMART said: Or even more search friendly: "How to run the browser hidden or invisible (headless)". 23 hours ago, czmaster said: I had seen this Headless mode, but actually I hadn't understood that it corresponded to a hidden mode. Changed WiKi to: 8. How to run the browser in headless mode (hidden mode) It must be assed in bracket as this is not common name in WebDriver world. The common name is "headless mode". 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
Danp2 Posted February 10, 2022 Author Posted February 10, 2022 @mLipokSince the wiki targets less experienced users, it might be better to match their expectations. Maybe this? 8. How to run without a visible browser (headless mode) mLipok 1 Latest Webdriver UDF Release Webdriver Wiki FAQs
rlvitorino Posted February 10, 2022 Posted February 10, 2022 Reason why I sent it here is that I really couldn't, but that's ok thanks!
mLipok Posted February 14, 2022 Posted February 14, 2022 On 2/1/2022 at 3:19 PM, Danp2 said: @mLipok Have you tried something like this? Local $sPref = 'browser.helperApps.neverAsk.saveToDisk' Local $sValue = 'text/plain,text/csv,application/csv,application/vnd.ms-excel,text/comma-separated-values,application/excel,application/octet-stream' _WD_CapabilitiesAdd('prefs', $sPref, $sValue) This not works well. I still have this: 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
Danp2 Posted February 15, 2022 Author Posted February 15, 2022 12 hours ago, mLipok said: Local $sValue = 'text/plain,text/csv,application/csv,application/vnd.ms-excel,text/comma-separated-values,application/excel,application/octet-stream' Since you are downloading a PDF file, you will need to modify this line so that it includes the correct entry for pdf files. Latest Webdriver UDF Release Webdriver Wiki FAQs
mLipok Posted February 15, 2022 Posted February 15, 2022 I try to use both options: _WD_CapabilitiesAdd('prefs', 'browser.helperApps.neverAsk.saveToDisk', 'application/pdf') _WD_CapabilitiesAdd('prefs', 'browser.helperApps.neverAsk.saveToDisk', 'text/plain,text/csv,application/csv,application/vnd.ms-excel,text/comma-separated-values,application/excel,application/octet-stream,application/pdf') I even play with manually set this value in "about:config" Here: https://gist.github.com/Kannamaraj/4ca929c4e63cc39958e75d5126c113ad I found interesting prefs: fp.setPreference("pdfjs.disabled", true); Here is good example test: www.africau.edu/images/default/sample.pdf I will create repro code. 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
n3wbie Posted February 16, 2022 Posted February 16, 2022 $FilesInZip = $oShell.NameSpace($sTempFile).items $FilesInZip = $oShell.NameSpace($sTempFile)^ ERROR Getting Following Error While Using Update Chromedriver Option.
Danp2 Posted February 16, 2022 Author Posted February 16, 2022 Hi @n3wbie, There's a fix for this coming in the next release. If you want to test the fix, you can either download the revised wd_helper.au3 from Github or make the following change to your local version -- ; $FilesInZip = $oShell.NameSpace($sTempFile).items Local $oNameSpace = $oShell.NameSpace($sTempFile) $FilesInZip = $oNameSpace.items Latest Webdriver UDF Release Webdriver Wiki FAQs
n3wbie Posted February 16, 2022 Posted February 16, 2022 (edited) \wd_helper.au3" (1408) : ==> The requested action with this object has failed.: $FilesInZip = $oNameSpace.items $FilesInZip = $oNameSpace^ ERROR Still Getting Same error Downloaded Updated Version From Git Repo 11 minutes ago, Danp2 said: Hi @n3wbie, There's a fix for this coming in the next release. If you want to test the fix, you can either download the revised wd_helper.au3 from Github or make the following change to your local version -- ; $FilesInZip = $oShell.NameSpace($sTempFile).items Local $oNameSpace = $oShell.NameSpace($sTempFile) $FilesInZip = $oNameSpace.items Edited February 16, 2022 by n3wbie Made Mistake Quoting Error
Recommended Posts