Code Monkey home page Code Monkey logo

netbeans-selenium's Introduction

NetBeans-Selenium

Hey there, I am going to walk you through on how to import Selenium JAR files and Chrome Driver into your NetBeans project. You can either choose to follow the steps of go ahead and watch my video on how to do the same.

Before we get started, these are the websites from which we will be downloading the file.

Video Links

Steps

  1. Download the java version of selenium driver and unzip it wherever you would like to keep the files.

  2. Download the Chrome driver from the given link and choose the right version for your browser. You can check your browser version by clicking on those three dots on the top right corner of your browser and choosing Help > About .

  3. After downloading you can unzip it wherever you like to keep the file and also keep a copy of the file path for further use.

  4. Open NetBeans and click on File > New Project > Java > Java Application and give it a name of your choice.

  5. Once done, right click on the project and select properties and head over to libraries and click on Add JAR/Folders and head over to the location where you extracted Selenium driver in step 1 and select client-combined-3.XXX.jar file and also import all the other files under libs folder.

  6. Let's test the code

    System.setProperty("webdriver.chrome.driver",[PATH]);
    WebDriver driver = null;
    driver = new ChromeDriver();

    Here PATH refers to the chrome driver location which was extracted in step 3.

  7. Run the code and you need to be able to see a blank chrome tab on your screen. Chrome Tab

Date: 27/05/2021

netbeans-selenium's People

Contributors

skandy1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.