sfcode
An Online Competing and Development Environment
|
The help command for update. The flags shown here are OS specific. If you are not on a Windows machine, the --ie
flags are not shown.
Overview when you call update
:
out_dir
)out_dir
as a cache.out_dir
and if the file is older than an hour, it will make a request for new files. Note: api.github.com is rate limited by the ip address making the request. This is an issue for common CI systems like Travis or Circle and have an issue opened for this.update-config.json
which is also located in the out_dir
.Let's say you want to download just chromedriver...
Why do we set --gecko
and --standalone
to false? By default chromedriver, geckodriver and selenium standalone server download with no flags set. Setting --gecko
and --standalone
to false will prevent them from downloading and will just download chromedriver.
When setting the --ie
flag, this will download IEDriver 32 bit. Why 32-bit? We prefer using the 32-bit version because the 64-bit version has been previously reported to be very slow and flaky.
Let's say there is an issue with the latest version of chromedriver and we need version 2.20:
So the only thing different here is that instead of parsing for the latest version, we are parsing for version 2.20. We could then verify that it was the last item downloaded by calling webdriver-manager status
.
What about selenium standalone 2.53.1? This is similar but instead of the flag would be --versions.standalone 2.53.1
. What if the selenium standalone server has a beta in the name? The idea is similar:
The help command for start.
When starting selenium standalone server with webdriver-manager start
, it will use the latest version that is found in the cache unless you specify the version. Why? The idea here is that if you run webdriver-manager update
without flags, you are using the latest binary versions, so the start command would be similar webdriver-manager start
.
So let's say you downloaded chromedriver 2.20 and let's also say that the latest version is 2.29. If you have never downloaded 2.29, then chromedriver will not be associated with your selenium standalone server. In order for you to get 2.20 working:
What about chrome version 2.20, selenium standalone server 3.0.0-beta1, and not start with gecko driver?
Since IEDriver is not set by default, you'll still need to pass this field if you would like to start the selenium standalone server with the IEDriver.
We make the assumption that you already have the EdgeDriver downloaded and installed. To get this working pass the full path to the --edge
flag