caramen Posted October 1, 2018 Posted October 1, 2018 Hello all I am now abble to automate things with WebDriver i work a lot on it actualy. question 1 : Is chromedriver.exe and geckodriver.exe are safe if we put very sensitive informations in our script ? question2 : I dont find a way to attach webdriver to my current google session. If someone can lead me to. question3: How to start my broser (google in this case) with webdriver and have my normal GUI my stored password cash data etc... _WD_CreateSession($sDesiredCapabilities='{}') $sDesiredCapabilities='{}' My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Moderators JLogan3o13 Posted October 1, 2018 Moderators Posted October 1, 2018 Only you can answer question 1. You know that nothing in an AutoIt script is impossible to extract will very little effort. Only you can decide if you are willing to accept the risk that entails. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Danp2 Posted October 1, 2018 Posted October 1, 2018 The other thing to consider with #1 is how you are using the webdriver. I don't believe that anything malicious will occur as long as your are running an "official" version of the driver. However, remember that depending on your settings, some drivers could display this sensitive information in their console or log it to a file. Latest Webdriver UDF Release Webdriver Wiki FAQs
caramen Posted October 1, 2018 Author Posted October 1, 2018 Ah yeah that was of what ii was afraid of. My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
caramen Posted October 1, 2018 Author Posted October 1, 2018 Question 3 i tryed a lot of combinason with capability but i cant get a way to start with my profil [1538393441.081][INFO]: [4979b573b775a916f4d0b33239b764a7] RESPONSE InitSession { "capabilities": { "acceptInsecureCerts": false, "acceptSslCerts": false, "applicationCacheEnabled": false, "browserConnectionEnabled": false, "browserName": "chrome", "chrome": { "chromedriverVersion": "2.42.591088 (7b2b2dca23cca0862f674758c9a3933e685c27d5)", "userDataDir": "C:\\Users\\GUEMAR~1\\AppData\\Local\\Temp\\scoped_dir143016_26793" }, keeping getting the temp profil My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
caramen Posted October 1, 2018 Author Posted October 1, 2018 Question 2 I see that post : I read that comment : You can connect to an existing Firefox instance like this -- _WD_Option('Driver', '<Path to your driver>\geckodriver.exe') _WD_Option('DriverParams', '--log trace --connect-existing --marionette-port 2828') _WD_Option('Port', 4444) $sDesiredCapabilities = '{"desiredCapabilities":{"javascriptEnabled":true,"nativeEvents":true,"acceptInsecureCerts":true}}' _WD_Startup() $sSession = _WD_CreateSession($sDesiredCapabilities) To connect to an existing firefox session with this argument --connect-existing Same i tryed lot of combinason but i cant figure out how it work. My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Danp2 Posted October 1, 2018 Posted October 1, 2018 #3 Has already been asked / answered in the main Help & Support thread -- Latest Webdriver UDF Release Webdriver Wiki FAQs
Danp2 Posted October 1, 2018 Posted October 1, 2018 I use the "--connect-existing" option every day with FF. Are you saying that you are unable to get it working with FF? Or are you still trying to find a solution for Chrome? Latest Webdriver UDF Release Webdriver Wiki FAQs
caramen Posted October 1, 2018 Author Posted October 1, 2018 Yeah i am trying to find how to do with chrome. Sorry if i am not explicit enouth. My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Danp2 Posted October 1, 2018 Posted October 1, 2018 Not sure that is possible. You should read more here and let us know if you come up with a solution. caramen 1 Latest Webdriver UDF Release Webdriver Wiki FAQs
caramen Posted October 1, 2018 Author Posted October 1, 2018 Thanks @Danp2 My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
caramen Posted October 1, 2018 Author Posted October 1, 2018 15 minutes ago, Danp2 said: #3 Has already been asked / answered in the main Help & Support thread -- I tryed ;~ $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args": ["C:\\Users\\GUEMARA-Spie\\AppData\\Local\\Google\\Chrome\\User Data\\Default"] }}}}' ;~ $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, ""args: ["--user-data-dir=C:/Users/' & @UserName & '/AppData/Local/Google/Chrome/User Data"] }}}}' _WD_Option('DriverParams', '--user-data-dir=C:\\Users\\' & @UserName & '\\AppData\\Local\\Google\\Chrome\\User Data') _WD_Option('DriverParams', '--user-data-dir=C:\Users\' & @UserName & '\AppData\Local\Google\Chrome\User Data') Everything is starting chrome but again in temp profil. My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
caramen Posted October 1, 2018 Author Posted October 1, 2018 (edited) Seem like better but still not working. $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args":["user-data-dir=default"] } }}}' Starting ChromeDriver 2.42.591088 (7b2b2dca23cca0862f674758c9a3933e685c27d5) on port 9515 Only local connections are allowed. [154276:152324:1001/143728.233:ERROR:cache_util_win.cc(19)] Unable to move the cache: 5 [154276:152324:1001/143728.234:ERROR:cache_util.cc(140)] Unable to move cache folder E:\programation\autoit\WebDrivers Test\default\ShaderCache\GPUCache to E:\programation\autoit\WebDrivers Test\default\ShaderCache\old_GPUCache_000 [154276:152324:1001/143728.234:ERROR:disk_cache.cc(168)] Unable to create cache [154276:152324:1001/143728.239:ERROR:shader_disk_cache.cc(620)] Shader Cache Creation failed: -2 Nouvelle fenÛtre ouverte dans la session du navigateur Edited October 1, 2018 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Danp2 Posted October 1, 2018 Posted October 1, 2018 AFAIK, it has to go into ChromeOptions, so I would think that this should work -- $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args": ["--user-data-dir=C:/Users/' & @UserName & '/AppData/Local/Google/Chrome/User Data"] }}}}' Latest Webdriver UDF Release Webdriver Wiki FAQs
caramen Posted October 1, 2018 Author Posted October 1, 2018 (edited) Working but i got some debug error in the WD window So complicated for so simple action. Starting ChromeDriver 2.42.591088 (7b2b2dca23cca0862f674758c9a3933e685c27d5) on port 9515 Only local connections are allowed. [159516:162012:1001/144918.841:ERROR:cache_util_win.cc(19)] Unable to move the cache: 5 [159516:162012:1001/144918.841:ERROR:cache_util.cc(140)] Unable to move cache folder C:\Users\GUEMARA-SPIE\AppData\Local\Google\Chrome\User Data\ShaderCache\GPUCache to C:\Users\GUEMARA-SPIE\AppData\Local\Google\Chrome\User Data\ShaderCache\old_GPUCache_000 [159516:162012:1001/144918.843:ERROR:disk_cache.cc(168)] Unable to create cache [159516:162012:1001/144918.844:ERROR:shader_disk_cache.cc(620)] Shader Cache Creation failed: -2 Nouvelle fenÛtre ouverte dans la session du navigateur You made it for me mate thank you...... Seem like it is copying my profil somewhere. And i guess it make this error ccause it cannot overwrite the file becose they are in use. I ll try to check this. But.... Why it is copying my profil ?? Edited October 1, 2018 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Danp2 Posted October 1, 2018 Posted October 1, 2018 No idea. If you haven't figured out already, I don't use Chrome much. Latest Webdriver UDF Release Webdriver Wiki FAQs
caramen Posted October 1, 2018 Author Posted October 1, 2018 @Danp2 Totaly sorry i thougth it was solved but when i try to do anything WebDriver does not answer now. If i start the script it start chrome. I got my data and profil but i cant do any actions. Trying to solve it atm but if you got a solution or know issue about that My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
caramen Posted October 1, 2018 Author Posted October 1, 2018 (edited) Well i got a semi answer. If i use : $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args": ["--user-data-dir=ImportProfile"] }}}}' It will make a folder with a new profil called ImportProfile in the script folder but without my cash & password If I use JUST AFTER a fresh copy of my profil in ScriptDir : $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args": ["--user-data-dir=E:/ScriptDir/MyProfil"] }}}}' My code will work only on the first use. If i start my script again i got the same error as if i start from my profil directly : [81876:9604:1001/160823.758:ERROR:backend_impl.cc(2065)] Invalid cache (current) size [81876:4276:1001/160845.591:ERROR:connection_factory_impl.cc(396)] Failed to connect to MCS endpoint with error -118 [81876:78236:1001/160922.191:ERROR:CONSOLE(6)] "Uncaught ReferenceError: gbar is not defined", source: https://clients5.google.com/pagead/drt/dn/ (6) [81876:78236:1001/161001.504:ERROR:CONSOLE(6)] "Uncaught ReferenceError: gbar is not defined", source: https://clients5.google.com/pagead/drt/dn/ (6) So is it possible? or it s me? or an issue that we cannot solve ? Edited October 1, 2018 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
caramen Posted October 1, 2018 Author Posted October 1, 2018 Well i got all the answers xD After a lot of test, search, debug. question2 : Possible without all fonctionality question3: Possible if you start Chrome first time on the current profil with WebDriverItself. "args": ["--user-data-dir=Toto"] Use the Profil named "Toto" If the profil does not exist or does not find by webdriver it make a new profil with that name in the script dir. Then you can save password favorite inside this profil and work with it. OR you can use your profil or make a copy of it before. Where you want and use it. My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
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