Macro Scheduler 15

ChromeStart


 

ChromeStart>session_id

 

Creates a Chrome session and returns the session id.
 

Use the CHROMEDRIVER_EXE directive to specify the path to ChromeDriver.exe.

 

If necessary set the path to the Chrome executable by setting CHROMEDRIVER_BINARY

 

Optionally set the port number with CHROMEDRIVER_PORT.

 

A comma delimited list of Chrome command line switches can be specified in the CHROMEDRIVER_OPTIONS variable. These command line arguments will then be passed to Chrome when it is started.

 

To allow for automated downloads, set the desired download folder path by setting the CHROMEDRIVER_DOWNLOADPATH variable:

 

Let>CHROMEDRIVER_DOWNLOADPATH=c:\downloads
 

Important


 

The Chrome functions require a special test version of Chrome and matching ChromeDriver executable. Please download matching versions from the following page:

https://googlechromelabs.github.io/chrome-for-testing/

 

We recommend saving chromedriver.exe into the same folder as the chrome for testing version. Then set CHROMEDRIVER_EXE to the path of ChromeDriver.exe. If you use different directories you will likely need to also set CHROMEDRIVER_BINARY to the location of Chrome.exe


 

See also: Chrome Functions

 

Example

 

Let>CHROMEDRIVER_EXE=c:\chromedriver.exe

Let>CHROMEDRIVER_OPTIONS=--start-maximized


 

//start a Chrome session

ChromeStart>session_id


 

//navigate to google.com

ChromeNavigate>session_id,url,https://www.google.com/