Why Java for Selenium?

Picture of George G
by George G - Wednesday, January 20, 2016, 8:10 AM
Anyone in the world
  • Selenium is a Test Automation tool for Web Applications.  Selenium IDE is an Add-on for Mozilla Firefox.  Using Selenium IDE we can record and playback tests.   Recorded tests will be in a table format.  This can be exported into various programming language formats such as C#, Java / JUnit, Groovy, PHP, Perl, Python, Ruby, etc.
  • Learning one of these programming languages will be greatly helpful for automating tests with Selenium.  Java is a powerful programming language which gives the power of flexibility & extensibility with lot of open source libraries for various tasks.  With Java we can customize the error handling, logging, reading from external data sources, generating reports, etc.
  • Download Java : https://java.com/en/download/index.jsp , After installation check JAVA folder is available under Program Files
  • Eclipse – Java Editor , http://www.eclipse.org/downloads/ (Eclipse IDE for EE developers)
  • Explain to create a java project , class in Eclipse
  • Java is platform independent

Java Features :

  • Simple and Powerful
  • Object oriented
  • Distributed
  • Multithreaded
  • Dynamic
  • Architecture neutral
  • Portable
  • High performance
  • Robust
  • Secure

Many types of computers and operating systems are in use throughout the world—and many are connected to the Internet. Java makes it possible to have the assurance that any result on one computer with Java can be replicated on another. So the code is run in the different platform has a same result.