69, the URL would be "".Īfter the initial download, it is recommended that you occasionally go through the above process again to see if there are any bug fix releases. Use the version number retrieved from the previous step to construct the URL to download ChromeDriver. (The actual number may change in the future, of course.) Simply launch Google chrome with chrome.exe under the extraction folder. For example, the above URL will get your a file containing ".69". Download the one you need, run the executable and extract the files on your hard drive. Use the URL created in the last step to retrieve a small file containing the version of ChromeDriver to use. Take the Chrome version number, remove the last part, and append the result to URL "". Apparently, it supports some automated URL resolving: First, find out which version of Chrome you are using. Is there a simpler way to download a chrome driver for a specific version of google chrome? GOOGLE_CHROME_VERSION_MAJOR=$(echo "$/chromedriver_linu圆4.zip GOOGLE_CHROME_VERSION="$(google-chrome -version | cut -f 3 -d ' ')" This is brittle as the HTML contents may change. The Chrome version eg: 1.115, does not always match the chrome driver version, eg: 1.61.Ĭurrently, I parse the contents of and try to figure out the right version. I have a set of tests that downloads the latest Google Chrome from and then parses the contents on to figure out the right chrome driver version to download.
0 Comments
Leave a Reply. |