CaptainBeardsEyesBeard Posted October 31, 2019 Posted October 31, 2019 (edited) Hey I'm now getting this error >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\AutomationTesting\Elite3eAutomation\Framework\TestEnv.au3" _WDStartup: OS: WIN_10 WIN32_NT 17134 _WDStartup: AutoIt: 3.3.14.4 _WDStartup: WD.au3: 0.1.0.21 _WDStartup: Driver: chromedriver.exe _WDStartup: Params: --log-path="C:\AutomationTesting\Elite3eAutomation\Framework\chrome.log" _WDStartup: Port: 9515 _WD_Startup ==> General Error: Error launching web driver! >Exit code: 4294967295 Time: 0.5901 In my main program I call my first test ;/******************************************************/ ;/*****************Main Program*************************/ ;/******************* ;intiialise Wd _WD_Startup() Test1TestMainPage($IEURL) Then under this function that is called for my first test I have Func Test1TestMainPage($IEURL) CheckIfIEIsOpen($ApplicationWindow) ;/************************* Start URL**************************/ _ChromeStartup($IEURL,"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") Sleep(10000) $sElement = _Chrome($sSession, $_WD_LOCATOR_ByXPath, "//input[@id='lst-ib1']") _WD_ElementAction($sSession, "Welcome_c1_r0_AO_4__Process_Matter", 'click') if WinSetState($ApplicationWindow, "", @SW_MAXIMIZE) Then Else Sleep(6000) WinSetState($ApplicationWindow, "", @SW_MAXIMIZE) EndIf WinActivate($ApplicationWindow) ;/****************************End*************************************************************/ ;/****************************Test main page*********************************************/ _WD_WaitElement($sSession, $_WD_LOCATOR_ByXPath, "//rect[@class='highcharts-button-box']") $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//rect[@class='highcharts-button-box']") If @error = $_WD_ERROR_NoMatch Then MsgBox(0, "", "No Match") EndIf _WD_ElementAction($sSession, $sElement, 'click') the error is pretty much instant Edited October 31, 2019 by CaptainBeardsEyesBeard
CaptainBeardsEyesBeard Posted October 31, 2019 Author Posted October 31, 2019 (edited) FYI I created a new, empty project and included the the demo which should run a demo of it #include "C:\AutomationTesting\Automation\WebDriver\wd_demo.au3" and I still get this >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\AutomationTesting\Elite3eAutomationTest\Framework\TestEnv.au3" _WDStartup: OS: WIN_10 WIN32_NT 17134 _WDStartup: AutoIt: 3.3.14.4 _WDStartup: WD.au3: 0.1.0.21 _WDStartup: Driver: chromedriver.exe _WDStartup: Params: --log-path="C:\AutomationTesting\Elite3eAutomationTest\Framework\chrome.log" _WDStartup: Port: 9515 _WD_Startup ==> General Error: Error launching web driver! >Exit code: 4294967295 Time: 0.5727 So what am I doing wrong 😱 Edited October 31, 2019 by CaptainBeardsEyesBeard
Danp2 Posted October 31, 2019 Posted October 31, 2019 1 hour ago, CaptainBeardsEyesBeard said: _WD_Startup ==> General Error: Error launching web driver! The UDF can't find the executable to launch it. Where did you place the chromedriver.exe? Latest Webdriver UDF Release Webdriver Wiki FAQs
CaptainBeardsEyesBeard Posted October 31, 2019 Author Posted October 31, 2019 (edited) OK I thought that might be the case so I copied the chromedriver.exe to the following locations: C:\Automation\Chrome (this file path is where the Chrome.au3 is located) C:\Automation\Json (where the json.au3 is located) C:\\Automation\WebDriver(where the wd)core.au3 is located) C:\Automation\WinHTTP (where the winhttp.au3 is located) But still get the error Edited October 31, 2019 by CaptainBeardsEyesBeard
Danp2 Posted October 31, 2019 Posted October 31, 2019 @CaptainBeardsEyesBeard Please do the following -- Delete all but one of those copies so that you don't get confused in the future. Add the following line to your script -- _WD_Option('Driver', '<Full path to the chromedriver executable>') This line provides the location of the executable to the UDF and needs to be defined before the call to _WD_Startup(). For example, if you placed the executable in C:\Automation\WebDriver, then your line would look like this -- _WD_Option('Driver', 'C:\Automation\WebDriver\chromedriver.exe') Latest Webdriver UDF Release Webdriver Wiki FAQs
CaptainBeardsEyesBeard Posted October 31, 2019 Author Posted October 31, 2019 That's ace thanks man! now I'm getting this error in a CMDwindow. Any idea? Starting ChromeDriver 77.0.3865.40 (f484704e052e0b556f8030b65b953dce96503217-refs/branch-heads/3865@{#442}) on port 9515 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Danp2 Posted October 31, 2019 Posted October 31, 2019 That's a standard warning, not an error. 😎 Latest Webdriver UDF Release Webdriver Wiki FAQs
CaptainBeardsEyesBeard Posted October 31, 2019 Author Posted October 31, 2019 (edited) yeah that's ace I've got that working now! 🏆 Edited October 31, 2019 by CaptainBeardsEyesBeard
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