Jump to content

Solved: _WD_Startup ==> General Error: Error launching web driver!


Recommended Posts

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 by CaptainBeardsEyesBeard
Link to post
Share on other sites

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 by CaptainBeardsEyesBeard
Link to post
Share on other sites

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 by CaptainBeardsEyesBeard
Link to post
Share on other sites

@CaptainBeardsEyesBeard Please do the following --

  1. Delete all but one of those copies so that you don't get confused in the future.
  2. 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')

 

Link to post
Share on other sites

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.

 

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By careca
      Here's my take on an auto completer, work in progress so don't be too harsh with me.
      The idea  is that after a spacebar press, it learns the word that was previously written, and the next time you write, it gets a list of all words that fit into what you're writing, so if the user writes "com", a word that may appear is "complex", that is, if the user has written it anytime in the past.
      A popup will show up whenever the user writes with the list of words, the way to select one of the words from the list is to scroll with the mouse wheel, and middle click. The popup timeout is 2.5 secs.
      Best regards.
       
      PS for the next step would be nice to save words as they are, for example emails, as it is it doesn't get @ for example.
       
       
      Completer 1.0.exe
      AComp.ico
      Completer 1.0.au3
    • By PhoenixXL
      Rich-Edit Predict Text UDF

      Working
      It sub classes the rich-edit control and matches the current word through the Database
      & sets selection in accordance.

      For Edit Controls look

      Functions
      Predicts Text from an User-Defined Database. Sets the Predicted Text when Enter is pressed. Pressing Backspace deletes the previously typed character. Support Editing, Overwriting, Updating, Deleting the Database. Has the Feature to add New words the user types in the control, to the Database. Supports Sensitive and In-Sensitive Prediction. Currently Supports Auto-completion only. Rich Edit Controls only supported Future Updates​Support Auto-suggestion. Note That if you set a Password Char for the Edit Box the Prediction will automatically get Unregistered.This UDF requires Beta Release 3.3.9.4++ [beta-Oct-2012]

      Index

      ; #CURRENT# ===================================================================================================================== ;_RegisterPrediction ;_UpdatePredictList ;_UnRegisterPrediction ;_RegisterListingSpaceWords ;_RegisterListingNewWords ;_GetSelectedText ;_GetListCount ;_GetCurrentWord ;_GetCaretOffset ; =============================================================================================================================== ; #INTERNAL_USE_ONLY# =========================================================================================================== ;_New_WndProc ; AddToArray ; MakeArray ;_RichEdit_SubClass ;_AutoExit ;_PredictText ;_PredictSpaceText ;_SetSelection ;_MatchString ;_CtrlSetStyle ;_CtrlGetStyle ;_RemoveBit ; ===============================================================================================================================
      Please Notify for any other Updates and Bugs.

      Change-log
      v1.0 - First Release
      v1.1 - Fixed a bug.

      RichEditPredictText [uDF] v1.1
      v1.1 RichEditPredictText UDF.7z
      Previous Downloads : 80

      Regards
      Phoenix XL
    • By Mikeman27294
      Hello everyone.
      I want to run a function when a GUI window is resized. However, when I click to resize the GUI, before I actually drag the corner of the GUI it runs and prevents me from resizing the GUI. I was hoping that I would be able to make this message run once the GUI has finished running. Would this be possible?
      Thanks

      Edit
      I have solved it. The answer:

      GUISetOnEvent($GUI_EVENT_RESIZED, 'WM_SIZE', $hWnd)
×
×
  • Create New...