Jump to content

Recommended Posts

Posted

I'm trying to setup chrome auoit testing

Running this

_ChromeStartup($url = $IEURL, $chrome_path = "C:\AutomationTesting\Automation\Chrome\Chrome.exe")

I get this

>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\AutomationTesting\Elite3eAutomation\Framework\TestEnv.au3"    
"C:\AutomationTesting\Elite3eAutomation\Framework\Tests\Test1TestMainPage.au3" (9) : ==> Unknown function name.:
_ChromeStartup($url = $IEURL, $chrome_path = "C:\AutomationTesting\Automation\Chrome\Chrome.exe")
^ ERROR
>Exit code: 1    Time: 4.529

Yet I can see the _ChromeStartup function in the Chrome file. 

 

I guess I have a few questions

 

is the chromepath supposed to point to the installed Chrome.exe under Program filesx86 or should it be pointing at the webdriver Chrome.exe ? 
 

Posted
12 minutes ago, CaptainBeardsEyesBeard said:

Yet I can see the _ChromeStartup function in the Chrome file. 

Did you #include the chrome UDF at the beginning of your script?

13 minutes ago, CaptainBeardsEyesBeard said:

_ChromeStartup($url = $IEURL, $chrome_path = "C:\AutomationTesting\Automation\Chrome\Chrome.exe")

This is incorrect syntax (leave out the parameters if you don't need to override their default values)

15 minutes ago, CaptainBeardsEyesBeard said:

is the chromepath supposed to point to the installed Chrome.exe under Program filesx86 or should it be pointing at the webdriver Chrome.exe ? 

Haven't used this UDF, but I'm guessing the main Chrome executable. You definitely don't want the webdriver executable because you aren't using that UDF.

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.
×
×
  • Create New...