{"id":905,"date":"2013-01-02T10:19:29","date_gmt":"2013-01-02T10:19:29","guid":{"rendered":"http:\/\/vskills.in\/certification\/tutorial\/?p=905"},"modified":"2024-04-12T14:13:15","modified_gmt":"2024-04-12T08:43:15","slug":"introducing-webdriver","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/","title":{"rendered":"Setting Up Selenium WebDriver Project Using Java"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a ref=\"magnificPopup\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34.png\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"400\" src=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34.png\" alt=\"Setting Up Selenium WebDriver Project Using Java\" class=\"wp-image-93880\" srcset=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34.png 750w, https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34-300x160.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div>\n\n\n<h3>&nbsp;<\/h3>\n<h2><strong>Selenium WebDriver<\/strong><\/h2>\n<h4><strong>Setting Up the Selenium WebDriver Project Using Java<\/strong><\/h4>\n<p>Let&#8217;s learn how to install <strong>Selenium WebDriver<\/strong> means to set up a project in development so you can write a program using Selenium. How you do this depends on the programming language and development environment. Therefore, it is very important to learn programming languages such as java and python.<\/p>\n<h3><strong>Java with <\/strong><strong style=\"font-size: 1.5rem; letter-spacing: 0em;\">Selenium WebDriver<\/strong><\/h3>\n<p>The easiest way to set up a Selenium 2.0 Java project is to use <strong>Maven<\/strong>. Maven will download the java bindings (the Selenium 2.0 java client library) and all its dependencies and will create the project for you, using a maven pom.xml (project configuration) file. Once you\u2019ve done this, you can import the maven project into preferred IDE, IntelliJ IDEA or Eclipse.<\/p>\n<p>First, create a folder to contain Selenium project files. Then, to use <strong>Maven<\/strong>, you need a pom.xml file. This can be created with a text editor. We won\u2019t teach the details of pom.xml files or for using Maven since there are already excellent references on this. pom.xml file will look something like this. Create this file in the folder you created for project.<\/p>\n<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<\/p>\n<p>&lt;project xmlns=&#8221;http:\/\/maven.apache.org\/POM\/4.0.0&#8243;<\/p>\n<p>xmlns:xsi=&#8221;http:\/\/www.w3.org\/2001\/XMLSchema-instance&#8221;<\/p>\n<p>xsi:schemaLocation=&#8221;http:\/\/maven.apache.org\/POM\/4.0.0 http:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd&#8221;&gt;<\/p>\n<p>&lt;modelVersion&gt;4.0.0&lt;\/modelVersion&gt;<\/p>\n<p>&lt;groupId&gt;MySel20Proj&lt;\/groupId&gt;<\/p>\n<p>&lt;artifactId&gt;MySel20Proj&lt;\/artifactId&gt;<\/p>\n<p>&lt;version&gt;1.0&lt;\/version&gt;<\/p>\n<p>&lt;dependencies&gt;<\/p>\n<p>&lt;dependency&gt;<\/p>\n<p>&lt;groupId&gt;org.seleniumhq.selenium&lt;\/groupId&gt;<\/p>\n<p>&lt;artifactId&gt;selenium-java&lt;\/artifactId&gt;<\/p>\n<p>&lt;version&gt;2.45.0&lt;\/version&gt;<\/p>\n<p>&lt;\/dependency&gt;<\/p>\n<p>&lt;\/dependencies&gt;<\/p>\n<p>&lt;\/project&gt;<\/p>\n<p>Be sure you specify the most current version. At the time of writing, the version listed above was the most current, however there were frequent releases immediately after the release of Selenium 2.0. Check the Maven download page for the current release and edit the above dependency accordingly.<\/p>\n<p>Now, from a command-line, CD into the project directory and run maven as follows.<\/p>\n<p>mvn clean install<\/p>\n<p>This will download Selenium and all its dependencies and will add them to the project. Finally, import the project into a preferred development environment. For those not familiar with this, we\u2019ve provided an appendix which shows this.<\/p>\n<div class=\"apply\">\n<div class=\"apply\">\n<h3>&nbsp;<\/h3>\n<p><a href=\"https:\/\/www.vskills.in\/practice\/selenium\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-93579 size-full aligncenter\" src=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Free-Practice-test-1.png\" alt=\"Selenium professional free practice test\" width=\"960\" height=\"150\" srcset=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Free-Practice-test-1.png 960w, https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Free-Practice-test-1-300x47.png 300w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n\n\n<p><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/selenium-certification\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to Tutorial<\/a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href=\"https:\/\/www.vskills.in\/certification\/testing\/certified-selenium-professional\" target=\"_blank\" rel=\"noreferrer noopener\">Go to Home Page<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Selenium WebDriver Setting Up the Selenium WebDriver Project Using Java Let&#8217;s learn how to install Selenium WebDriver means to set up a project in development so you can write a program using Selenium. How you do this depends on the programming language and development environment. Therefore, it is very important to learn programming languages&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"categories":[350],"tags":[428,7026,349,7027,6821,7025],"class_list":["post-905","page","type-page","status-publish","hentry","category-selenium","tag-introducing-webdriver","tag-selenium-automation-testing","tag-selenium-certification","tag-selenium-documentation","tag-selenium-professional","tag-selenium-webdriver"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Setting Up Selenium WebDriver Project Using Java<\/title>\n<meta name=\"description\" content=\"Enhance and Upgrade your Selenium WebDriver skills for better career opportunities. Become a Certified Selenium Professional Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting Up Selenium WebDriver Project Using Java\" \/>\n<meta property=\"og:description\" content=\"Enhance and Upgrade your Selenium WebDriver skills for better career opportunities. Become a Certified Selenium Professional Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:43:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34.png\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/\",\"name\":\"Setting Up Selenium WebDriver Project Using Java\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34.png\",\"datePublished\":\"2013-01-02T10:19:29+00:00\",\"dateModified\":\"2024-04-12T08:43:15+00:00\",\"description\":\"Enhance and Upgrade your Selenium WebDriver skills for better career opportunities. Become a Certified Selenium Professional Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/#primaryimage\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34.png\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34.png\",\"width\":750,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting Up Selenium WebDriver Project Using Java\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting Up Selenium WebDriver Project Using Java","description":"Enhance and Upgrade your Selenium WebDriver skills for better career opportunities. Become a Certified Selenium Professional Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/","og_locale":"en_US","og_type":"article","og_title":"Setting Up Selenium WebDriver Project Using Java","og_description":"Enhance and Upgrade your Selenium WebDriver skills for better career opportunities. Become a Certified Selenium Professional Now!","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:43:15+00:00","og_image":[{"url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34.png","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/","name":"Setting Up Selenium WebDriver Project Using Java","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/#primaryimage"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34.png","datePublished":"2013-01-02T10:19:29+00:00","dateModified":"2024-04-12T08:43:15+00:00","description":"Enhance and Upgrade your Selenium WebDriver skills for better career opportunities. Become a Certified Selenium Professional Now!","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/#primaryimage","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34.png","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2020\/12\/Certified-Selenium-Professional-34.png","width":750,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/introducing-webdriver\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Setting Up Selenium WebDriver Project Using Java"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=905"}],"version-history":[{"count":16,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/905\/revisions"}],"predecessor-version":[{"id":93881,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/905\/revisions\/93881"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}