Java Essentials for a good Selenium Test automation developer ?

How Much Java you need to learn for a good Selenium Scripting ?



As far as Selenium is concerned we have our SeleniumHQ Site with frequently updated documentation we can go through that to get the selenium concepts much strong also there are many blogs on selenium wherein you can get to learn from the basics even this blog is one among that, when considering the Language based client drivers if you use Java then here are some Java topics that you need to know for a better understanding and good selenium scripting.

    OOP’s concept – Class, Objects Polymorphism, Inheritance and Encapsulation
    Java Programming essentials- Object Instances, method overloading/overriding concepts and packages
    Control Statements – While, do-While, Switch, If statements – This will help us in writing the scripts for a multiple scenario statements and decision making scenarios.
    Looping statements – This will help us in scenarios like, iterating through a large table to find a record that you want and Running the same test for multiple number of times.
    Arrays Concepts – This will help us in having some set of datas of same type in a static way.
    Threads and MultiThreading Concepts – This will help us in making run our scripts in different threads that will help us in achieving better performance.
    Java Collections Framework – ArrayLists and HashMaps – This will help us in maitaining a collection of data’s. Particularly useful for scenarios where you need to compare the data from Web app UI with the DB. [OR] From UI to another UI
    File Streams – This will be helpful in externalization of data through CSV, Excel or Java Properties file.

The above mentioned topics in java is will make you a pretty good selenium coder :). I will try to cover all these concepts with some real time examples. Until then please go through the Java conepts, there are many java tutorials and I find this to be a good one <a href="http://www.java-made-easy.com/java-collections.html"


Dont forget – “Head First java” is a Wonderful book to learn Java with a fun.

20 thoughts on “Java Essentials for a good Selenium Test automation developer ?

  1. I liked ur blog very much .can yopu please explain syntax for selenium webdriver using hash maps? like how do you locate username and password on the page?

  2. I simply want to say I am just new to blogging and site-building and certainly loved your web site. More than likely Iā€™m going to bookmark your blog . You really come with terrific well written articles. Appreciate it for sharing with us your blog site.

  3. I am comparatively new to selenium and played a little with selenium IDE, and trying to do with selenium rc. I am baffled to use the scripting language there. Can you tell me what is the most used language in selenium across industries? And also I came across this course http://www.wiziq.com/course/12451-selenium-automated-web-browser-testing-for-web-applications os selenium automated web browser testing is this good? If someone does in Java and he joins a company where everyone does in ruby, then it’ll be a pain to learn ruby again. And also it would be great if you address any comparison about the available languages like (perl, python, ruby, java etc.) or tell me any other guidance would really appreciate help and also i would like to thank for all the information you are providing.

    • Hi Sumit,
      First of all Thanks for trying out selenium being new and welcome to Selenium community.
      I would tell Selenium + Java is the most used combination across companies and even, release of selenium happens often only for Java bindings the more.
      (Pls be clear I say the most active binding is java than any other like .net or python).
      I cannot comment on the link that you provided like whether it is worth it or not.

      Please email me at manojk@assertselenium.com for training discussions.

  4. Thanks for sharing it,Sir.
    I am working as Manual tester.I just completed my 5 months in IT Industry.
    I want to work as Automation Developer.But I did not get any opportunity in IT as a fresher automation developer..I have studied Selenium.I think,I am quite good in it.
    So please tell me what should i do?
    or suggest something…

    • Contribute to open source tools, work on example projects open source it, get your name on any online platforms and that would add value in your resume and speaks more when you are in interview.

  5. Very nice and helpful article.
    It helps me in preparing Java for testing purpose else I was confuse on how much part to cover from Java for automation.

  6. Manoj you are doing good job..

    i’m Software Test Engineer having 3yrs in Manual, now i wanted to jump into the Selenium. Actually i dont like to write code, but i dont option bcoz, in future Manual dont have any future. So i just wanted to ask you that what are the basic java/selenium programs they may ask in interview for 1-2yrs exp in selenium..?

    you just name the programs.. that’s all i wanted..

    Awaiting for your revert on this.

    Thanks. All the Best

Leave a Comment

*