CaptainBeardsEyesBeard Posted October 29, 2019 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?
water Posted October 29, 2019 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Exit Posted October 29, 2019 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()
junkew Posted October 29, 2019 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
CaptainBeardsEyesBeard Posted October 30, 2019 Author 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
Danp2 Posted October 30, 2019 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
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