Geertjan's Blog

  • July 29, 2015

Selenium for Java in NetBeans IDE

Geertjan Wielenga
Product Manager

Selenium is a popular browser automation framework. There's a good introduction and examples here. Let's see how to use it in NetBeans IDE, for Java applications, without installing plugins. 

In the upcoming NetBeans IDE 8.1 (already available as development builds), create your Maven Java EE project, which will give you this:

In the New File dialog, you'll find Selenium test files:

When you select the Selenium Test Case above and click Next and complete the wizard, you'll have the new Selenium test file, as well as all the dependencies you'll need (click to enlarge the image below):

Right-click the application, choose test file, the rest runs, the browser opens, and the results are shown in the Test Results window.

Join the discussion

Comments ( 4 )
  • Tom Thursday, July 30, 2015


    Selenium is really great for automated testing of your web applications in a real world scenario using IE, Firefox, Chrome. However I wouldn't advice to create your tests using the above strategy, but rather using PageObjects, which are reusable:


    Maybe Netbeans could support the automatic creation of PageObjects :)



  • jessica meri123 Thursday, February 18, 2016

    Thanks for sharing these information. It’s a very nice topic. We are providing online training classes<a href="http://hyderabadsys.com/selenium-online-training/">seleniumonlinetraining</a>

  • Rama kanth Wednesday, April 13, 2016

    Thank u for your information. I read your shared information on selnium Topic.

    <a href="http://hyderabadsys.com/selenium-online-training/">Selenium Online Training</a>

  • Credo Systemz Tuesday, March 28, 2017

    Selenium WebDriver fits in the same role as RC did, and has incorporated the original 1.x bindings. It refers to both the language bindings and the implementations of the individual browser controlling code. This is commonly referred to as just "WebDriver" or sometimes as Selenium 2.

    More Info: http://www.bestseleniumtraininginchennai.in/

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.