Code: Select all
Let>CHROME_DRIVER_URL=https://chromedriver.storage.googleapis.com
HTTPRequest>%CHROME_DRIVER_URL%/LATEST_RELEASE,,GET,,RESPONSE,,,,
Separate>RESPONSE,.,VERSION
Let>CHROME_major=VERSION_1
Let>CHROME_minor=VERSION_2
Let>CHROME_build=VERSION_3
Let>CHROME_revision=VERSION_4
Let>CHROME_release=RESPONSE
GoSub>READ_AND_COMPARE_INI_FILE,%ROOT_PATH%\data,info,{"major"},%CHROME_major%,chrome
IfNotFileExists>%ROOT_PATH%\file_server\chrome\%CHROME_release%.zip
HTTPRequest>%CHROME_DRIVER_URL%/%LATEST_STABLE_VERSION%/chromedriver_win32.zip,%ROOT_PATH%\file_server\chrome\%CHROME_release%.zip,GET,,,,,,
Endif>
Let>NEXT_VERSION=CHROME_major+1
HTTPRequest>%CHROME_DRIVER_URL%/LATEST_RELEASE_%NEXT_VERSION%,,GET,,RESPONSE,,,,
IfNot>RESPONSE=404 HTTP/1.1 404 Not Found
Separate>RESPONSE,.,VERSION
Let>CHROME_major=VERSION_1
Let>CHROME_minor=VERSION_2
Let>CHROME_build=VERSION_3
Let>CHROME_revision=VERSION_4
Let>CHROME_release=RESPONSE
IfNotFileExists>%ROOT_PATH%\file_server\chrome\%CHROME_release%.zip
HTTPRequest>%CHROME_DRIVER_URL%/%NEXT_DRIVER_VERSION%/chromedriver_win32.zip,%ROOT_PATH%\file_server\chrome\%CHROME_release%.zip,GET,,,,,,
Endif>
Endif>