The help command for update. The flags shown here are OS specific. If you are not on a Windows machine, the {\ttfamily -\/-\/ie} flags are not shown.


\begin{DoxyCode}{0}
\DoxyCodeLine{webdriver-\/manager update help }

\end{DoxyCode}


Overview when you call {\ttfamily update}\+:


\begin{DoxyItemize}
\item The output directory is created if it does not exist ({\ttfamily out\+\_\+dir})
\item If this is the first time downloading, it will make web requests to selenium-\/release.\+storage.\+googleapis.\+com, chromedriver.\+storage.\+googleapis.\+com, and api.\+github.\+com. The responses will be stored in the {\ttfamily out\+\_\+dir} as a cache.
\item If this is not the first time downloading, it will look at the cached files in {\ttfamily 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.
\item The response will then be parsed for the url to get the latest version if no version is provided via command line. The latest version will be based on what is available for your OS type and architecture.
\item Next we download the file from the url. If the file already exists (based on content length), we cancel the download.
\item We uncompress zip and tar files and for linux and mac, we set the permissions. Currently, we always uncompress the files even if the uncompressed files already exist.
\item Finally we write the file locations to the {\ttfamily update-\/config.\+json} which is also located in the {\ttfamily out\+\_\+dir}.
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23191}{}\doxysection{Download defaults –chrome, –gecko, –standalone flags}\label{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23191}
Let\textquotesingle{}s say you want to download just chromedriver...


\begin{DoxyCode}{0}
\DoxyCodeLine{webdriver-\/manager update -\/-\/gecko false -\/-\/standalone false }

\end{DoxyCode}


Why do we set {\ttfamily -\/-\/gecko} and {\ttfamily -\/-\/standalone} to false? By default chromedriver, geckodriver and selenium standalone server download with no flags set. Setting {\ttfamily -\/-\/gecko} and {\ttfamily -\/-\/standalone} to false will prevent them from downloading and will just download chromedriver.\hypertarget{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23192}{}\doxysection{Download using –ie}\label{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23192}
When setting the {\ttfamily -\/-\/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.\hypertarget{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23193}{}\doxysection{Download a specific version}\label{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23193}
Let\textquotesingle{}s say there is an issue with the latest version of chromedriver and we need version 2.\+20\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{webdriver-\/manager update -\/-\/versions.chrome 2.20 }

\end{DoxyCode}


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 {\ttfamily webdriver-\/manager status}.

What about selenium standalone 2.\+53.\+1? This is similar but instead of the flag would be {\ttfamily -\/-\/versions.\+standalone 2.\+53.\+1}. What if the selenium standalone server has a beta in the name? The idea is similar\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{webdriver-\/manager update -\/-\/versions.standalone 3.0.0-\/beta1 }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23194}{}\doxysection{start command\+: setting specific versions}\label{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23194}
The help command for start.


\begin{DoxyCode}{0}
\DoxyCodeLine{webdriver-\/manager start help }

\end{DoxyCode}


When starting selenium standalone server with {\ttfamily 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 {\ttfamily webdriver-\/manager update} without flags, you are using the latest binary versions, so the start command would be similar {\ttfamily webdriver-\/manager start}.\hypertarget{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23195}{}\doxysubsection{Starting a specific version}\label{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23195}
So let\textquotesingle{}s say you downloaded chromedriver 2.\+20 and let\textquotesingle{}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\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{webdriver-\/manager start -\/-\/versions.chrome 2.20 }

\end{DoxyCode}


What about chrome version 2.\+20, selenium standalone server 3.\+0.\+0-\/beta1, and not start with gecko driver?


\begin{DoxyCode}{0}
\DoxyCodeLine{webdriver-\/manager start -\/-\/versions.chrome 2.20 -\/-\/versions.standalone 3.0.0-\/beta1 -\/-\/gecko false }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23196}{}\doxysubsection{Starting with –ie}\label{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23196}
Since IEDriver is not set by default, you\textquotesingle{}ll still need to pass this field if you would like to start the selenium standalone server with the IEDriver.


\begin{DoxyCode}{0}
\DoxyCodeLine{webdriver-\/manager start -\/-\/ie }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23197}{}\doxysubsection{Starting with –edge}\label{md_sfcode_node_modules_protractor_node_modules_webdriver_manager_docs_versions_autotoc_md23197}
We make the assumption that you already have the Edge\+Driver downloaded and installed. To get this working pass the full path to the {\ttfamily -\/-\/edge} flag


\begin{DoxyCode}{0}
\DoxyCodeLine{webdriver-\/manager start -\/-\/edge "{}C:\(\backslash\)Program Files (x86)\(\backslash\)Microsoft Web Driver\(\backslash\)MicrosoftWebDriver.exe"{} }

\end{DoxyCode}
 