{"id":4755,"date":"2019-10-11T10:39:19","date_gmt":"2019-10-11T10:39:19","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=4755"},"modified":"2024-08-09T06:35:13","modified_gmt":"2024-08-09T06:35:13","slug":"how-to-download-selenium-webdriver","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-download-selenium-webdriver\/","title":{"rendered":"How to Download Selenium Webdriver?"},"content":{"rendered":"<h2>How to Download Selenium Webdriver?<\/h2>\n<p>In this tutorial, we will download the Selenium Webdriver for the Java language. Having said that, Selenium Webdriver is typically not a tool to download and use it straight away. Webdriver is a set of APIs(Application Programming Interface) that can be used, integrated, and interact with the application. The title of this post or the question is misleading but retained so that it looks traditional. \ud83d\ude42<\/p>\n<p>We will see how we can integrate Selenium Webdriver in the projects that use Maven build tool.<\/p>\n<h3>Selenium Webdriver<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4756\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-WebDriver-Download.png\" alt=\"Selenium WebDriver Download\" width=\"1920\" height=\"933\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-WebDriver-Download.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-WebDriver-Download-300x146.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-WebDriver-Download-1024x498.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-WebDriver-Download-768x373.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-WebDriver-Download-1536x746.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>Click on the download button under Selenium Webdriver.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4760\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java.png\" alt=\"Selenium Java\" width=\"1917\" height=\"762\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java.png 1917w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java-300x119.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java-1024x407.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java-768x305.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java-1536x611.png 1536w\" sizes=\"auto, (max-width: 1917px) 100vw, 1917px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Click on the download link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4761\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java-Zip-file.png\" alt=\"Selenium Java Zip file\" width=\"1860\" height=\"765\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java-Zip-file.png 1860w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java-Zip-file-300x123.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java-Zip-file-1024x421.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java-Zip-file-768x316.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-Java-Zip-file-1536x632.png 1536w\" sizes=\"auto, (max-width: 1860px) 100vw, 1860px\" \/><\/p>\n<h3><\/h3>\n<h3>Maven Project<\/h3>\n<p>As discussed earlier, downloading Selenium Webdriver and adding the jar file to the project is an old approach. We can simply add the build tool Selenium dependency to the project build file. For example, in the Maven project, we can add the Selenium dependency to the POM file.<\/p>\n<p>The build tool will download the dependency on the local repository under the hood.<\/p>\n<h3>Selenium 3.x dependency<\/h3>\n<pre>&lt;dependency&gt;\r\n    &lt;groupId&gt;org.seleniumhq.selenium&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;selenium-java&lt;\/artifactId&gt;\r\n    &lt;version&gt;3.141.59&lt;\/version&gt;\r\n&lt;\/dependency&gt;<\/pre>\n<h3>Selenium 4.x Alpha<\/h3>\n<pre>&lt;dependency&gt;\r\n    &lt;groupId&gt;org.seleniumhq.selenium&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;selenium-java&lt;\/artifactId&gt;\r\n    &lt;version&gt;4.0.0-alpha-5&lt;\/version&gt;\r\n&lt;\/dependency&gt;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Download Selenium Webdriver? In this tutorial, we will download the Selenium Webdriver for the Java language. Having said that, Selenium Webdriver is typically not a tool to download and use it straight away. Webdriver is a set of APIs(Application Programming Interface) that can be used, integrated, and interact with the application. The title [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[185],"tags":[214],"class_list":["post-4755","post","type-post","status-publish","format-standard","hentry","category-selenium","tag-selenium","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=4755"}],"version-history":[{"count":5,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4755\/revisions"}],"predecessor-version":[{"id":23689,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4755\/revisions\/23689"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=4755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=4755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=4755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}