CaptainBeardsEyesBeard Posted October 29, 2019 Share Posted October 29, 2019 Hi I'm looking to automate chrome I came across this though it's from 2013 so may be out of date? Either way it doesn't seem to recognise a chrome function I tried "C:\DACBAutomationTesting\Elite3eAutomation\Framework\Tests\Test1TestMainPage.au3" (9) : ==> Unknown function name.: _ChromeStartup($url = $IEURL, $chrome_path = "C:Program FilesGoogleChromeApplicationchrome.exe") ^ ERROR So I'm wondering if there is a better resource for setting up Chrome automation? Link to comment Share on other sites More sharing options...
water Posted October 29, 2019 Share Posted October 29, 2019 The most up-to-date way to automate Chrome, Firefox and Edge is the Webdriver UDF. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Exit Posted October 29, 2019 Share Posted October 29, 2019 (edited) But there is unfortunately the fact that Webdriver can not access/attach an existing session. Or is this already fixed? I use the scripts generated by UIASPY. Edited October 29, 2019 by Exit App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
junkew Posted October 29, 2019 Share Posted October 29, 2019 Read FAQ 31 its either webdriver or IUIAutomation thread in examples They have both their own pros and cons CEF could be another approach but then you start from ground zero: https://github.com/chromiumembedded/cef FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
CaptainBeardsEyesBeard Posted October 30, 2019 Author Share Posted October 30, 2019 20 hours ago, water said: The most up-to-date way to automate Chrome, Firefox and Edge is the Webdriver UDF. Hey I'm following this Which tells you download the UDFs and then the chrome driver located here https://sites.google.com/a/chromium.org/chromedriver/downloads What do I do with the chrome.exe file? Thx Link to comment Share on other sites More sharing options...
Danp2 Posted October 30, 2019 Share Posted October 30, 2019 1 hour ago, CaptainBeardsEyesBeard said: What do I do with the chrome.exe file? It gets launched by the UDF, so the simplest thing to do is place it in the same directory as your script. Latest Webdriver UDF Release Webdriver Wiki FAQs 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