info@grazitti.com +91 (172) 5048500

Selenium Data Driven Framework

Products Selenium Data Driven Framework

Simplify Selenium Testing With Our Robust Selenium 2 Framework

Small Circle Version

Button Selenium 2 Framework Faq
Our expert team of QA has released the version 3 of the Selenium 2 (Webdriver) Framework.
This framework will allow you an in-depth QA of your software with features like auto-search drop down, image comparison, file sorting and more. These features help make your QA process more accurate, easier, and faster. All you need to do is download the zip, install the framework, and get going with your testing.

Framework Features:

  • Well defined architectural design
  • Script execution in multiple environments
  • Parameterizing of different input types
  • Auto-suggesting search dropdown
  • Image comparison
  • Auto-focusing on new tab
  • Checking and deleting cookies
  • Easier, faster and efficient analysis of result logs
  • Easy debugging and script maintenance
  • 100% reliability of utility scripts, online execution, and report packs

Benefits:

  • Faster Script Development
  • Reuse of Scripts
  • Well Organized Code
  • Test Data Management
  • Ease of Reporting & Logging
  • Ease of Maintenance

Technical Specifications:

  • Architecture Design: Data Driven & Page Object Model
  • Language: Java
  • Log generation: Log4j
  • Reporting: ANT Generated Reports
Please provide the following information and we will email you the Selenium 2 (Webdriver) Framework download link.

Fields marked * are mandatory.

  • I was suggested this website by my cousin. I am sure whether this post is written by him as no one else know such detailed about my difficulty.
    You are amazing! Thanks!

  • I am in fact thankful to the holder of this web site who has shared
    this great article at here.

  • Please share the download link.

    • For downloading “Selenium 2 (Webdriver) Framework version 3″, Fill the selenium download form on this page:
      http://www.grazitti.com/resources/tools/selenium-2-framework.html

      You will receive a mail and by clicking on the link ‘ Grazitti Automation Selenium Testing Framework version 3.’ in the mail you can download the Selenium Framework.

      I have checked it at my end and I am receiving the mail. Please make sure you provide the correct email or try some other email.

  • Ady

    Hi Grazziti Team, You have done an excellent job by providing a framework of this nature for all the newbies who are trying to learn selenium. I have analyzed the framework and found that its been structured well, but the only issue I had is there isnt any documentation on how to go about creating page object classes and parameters etc for a new project. It would be great if there is some document or example that helps to analyze and go step by step setup for a smaple application.

    • Hi Aditya

      Thank you for using our Selenium 2 Framework. We are happy to see such a great success of our product. We would love to hear from you and it would be great if you return the favor by recommending our product here – http://www.linkedin.com/company/grazitti-interactive/selenium-2-framework-1022651/product?trk=biz_product

      After filling the form on this page http://www.grazitti.com/resources/tools/selenium-2-framework you’ll get a mail.
      In the mail, click on the link given to download a package. The package has a code folder and a pdf. That pdf contains all the information that you are talking about. Further, you can also checkout our FAQs section for finding answers to some of the common queries http://www.grazitti.com/resources/tools/selenium-2-framework/faqs
      Also, if you have any other query, feel free to ask by filling the form at the end of FAQs page

  • I have downloaded the framework. Thank you so much for giving it. And i wanted to debug it or let me say like this i wanted to understand how you are created this framework. Please suggest me how do i do that to understand step by step?

    • Hi Bhargav

      Thank you for using our Selenium 2 Framework. We are happy to see such a great success of our product. We would love to hear from you and it would be great if you return the favor by recommending our product here – http://www.linkedin.com/company/grazitti-interactive/selenium-2-framework-1022651/product?trk=biz_product

      In the mail, click on the link given to download the package. The package has a code folder and a pdf file. That pdf contains all the information that you are talking about. Overall Directory Structure of the Framework is explained in the pdf.
      Further, you can also checkout our FAQs section for finding answers to some of the common queries http://www.grazitti.com/resources/tools/selenium-2-framework/faqs
      For additional queries, feel free to ask by filling the form at the end of FAQs page

      For understanding the code you should also go through the below mentioned topics:-
      a) Different framework structures
      b) Page object model in automation
      c) Object oriented programming basics

  • please let me know is there explanation provided for u r fraamework i want to understand the code

    • Hi Pavan

      Thank you for writing in to us.

      After filling the form on this page http://www.grazitti.com/resources/tools/selenium-2-framework you’ll get a mail.
      In the mail, click on the link given to download a package. The package has a code folder and a pdf. That pdf contains all the information that you are talking about. Further, you can also checkout our FAQs section for finding answers to some of the common queries http://www.grazitti.com/resources/tools/selenium-2-framework/faqs
      For additional queries, feel free to ask by filling the form at the end of FAQs page

      Also, We have added lot of documentation(c omments) with our code for better understanding.

  • Is this framework handles if there are any file download or upload popups?

    • Hi Srini

      Thank you for writing in to us

      Check our framework’s test script ‘RegistrationTe st.java’, where we have automated file upload as well as download functionality

  • what type of testcases should be automated

    • Following type of test cases should be automated:
      -Tests that need to run for every build.
      -Tests that use multiple data values for same action.
      -Identical tests that need to be executed using different browsers

  • can the framework be with testNg instead of junit

    • Yes,you can also use TestNG. TestNG is meant for high-level testing and complex integration test.Its flexibility is especially useful with large test suites. In addition, TestNG also cover the entire core JUnit4 functionality.

      We have been using JUnit as we do not have such big and complex test cases. It was meant for providing a start to selenium automation testers. Advanced and better approaches are always welcomed for this framework.

  • If I update the selenium-java-2 .25.0-srcs.jar and selenium-java-2 .25.0.jar with latest release of java jar files with using same packages of yours then It will work for Firefox version 18?
    Or is any other way to run the script on latest Firefox?

    • New jars available on http://code.google.com/p/selenium/downloads/list
      Add selenium-java-2 .30.0, selenium-java-2 .30.0-srcs and selenium-server -standalone-2.3 0.0 jars in your automation project and you’ll be able to run your selenium scripts on Firefox 19.0

  • I tried to use the framework and tried to run the regression test script and it fails saying unable to connect to localhost on port 7055 after 45000 ms. Looks like this framework is still using selenium RC? is this correct?

    • This issue is related to firefox compatability with selenium. Make sure your firefox is 17 or lower versions, scripts does not work on firefox 18

      • New jars available on http://code.google.com/p/selenium/downloads/list
        Add selenium-java-2 .30.0, selenium-java-2 .30.0-srcs and selenium-server -standalone-2.3 0.0 jars in your automation project and you’ll be able to run your selenium scripts on Firefox 19.0

  • Hello,
    I have tried to work on a Modal dialog using selenium web driver. I have used the code
    Set winH=driver.get WindowHandles() but the modal dialog window will not be recognized by this method.
    driver.switchTo().frame(0) does not also recognize it
    driver.switchTo().alert().accept(); also does not recognize it.
    I have searched number of forms and did not get a good work around for it. Our application has lot of dialogs on which there are text attributes, list boxes and accept and cancel buttons to achieve the functionality.
    Kind responses on this topic will help.
    Thanks
    Surya.

    • Try using the following code

      For a new tab we are using this code in our framework:
      Set allWindowHandle s = driver.getWindowHandles();
      String window0 = (String) allWindowHandle s.toArray()[1];
      driver.switchTo().window(window0);

      Let’s take this example – If you click on a window link and pop-up A is displayed and then a link on the pop-up A which opens pop-up B

      Here, first we have to switch to pop-up A and will be using following same code after clicking on the main window:

      Set allWindowHandle s = driver.getWindowHandles();
      String window0 = (String) allWindowHandle s.toArray()[1];
      driver.switchTo().window(window0);

      //Then we’ll click on some link in pop-up A
      // To switch to pop-up B we’ll again use the above code
      driver.switchTo().window(window0);

      • Hello,

        This works for the new tab but not the new modal dialog.

        Thanks
        Surya

        • All possible options that you can try in this case are:
          driver.switchTo().frame(“frameName”);
          driver.switchTo().window(“windowName”);
          driver.switchTo ().alert();

  • The zip file for Selenium 2 (Webdriver) Framework version 3 when downloaded from the email recieved is not get unzipped as an error appears “Some files could not be unzipped” is preventing it from opening. Please suggest what needs to be done?

    • Please fill the form and try again. We have checked the zip many times and are able to unzip it successfully.

  • I downloaded the pkg, can’t find any documentation about the framework. Is there any documents about the framework, e.g. architecture, user guide, installation guide, etc?

    • Thank you for downloading our selenium webdriver version 3 framework. After filling the form on this page http://www.grazitti.com/resources/tools/selenium-2-framework you’ll get a mail.
      In the mail, click on the link given to download a package. The package has a code folder and a pdf. That pdf contains all the information that you are talking about. Further, you can also checkout our FAQs section for finding answers to some of your queries http://www.grazitti.com/resources/tools/selenium-2-framework/faqs

  • Selenium 2 framework v.3 is free?

    • Yes, its under LGPL license.
      To get more info –
      http://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License

  • hi thanks alot for ur effort on designing the basic Datadriven framework which will be understood by the beginers as well..they might be confused earlier but practice can make us better…

    here i would like to know how u have created that applog html file in TestLogs..
    ur help will be highly appreciated…

    • Thank you for your feedback.

      For creating logs, follow these steps:
      a) Import following in your test script –
      import org.apache.log4j.Logger;
      import org.apache.log4j.PropertyConfigurator;

      b) Add this Jar in your project
      Log4j.jar

      c) In test code, add these:
      @Before: PropertyConfigurator.configure(“config/log4j.properties”);

      Main class: static Logger log = Logger.getLogger(LoginTest.class.getName());

      @Test code (write user friendly error message in logs):
      try
      } catch (AssertionError e) {
      log.error(“Cont ent Not Matched”, e);
      }

      d)Add Log4j.propertie s file in your project:

      # Define the root logger with appender file

      log4j.rootLogger = All, FILE, rfile

      # Define the file appender
      log4j.appender.FILE=org.apache.log4j.FileAppender
      log4j.appender.logfile.File=./TestLogs/Logfile.log

      # Define the layout for file appender
      log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
      log4j.appender.FILE.File=./TestLogs/Logfile.log
      log4j.appender.FILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x – %m%n

      # Define the layout for RollingFileAppender
      log4j.appender.rfile=org.apache.log4j.RollingFileAppender
      log4j.appender.rfile.File=./TestLogs/applog.html
      log4j.appender.rfile.MaxFileSize=100KB
      log4j.appender.rfile.Append=true
      log4j.appender.rfile.layout=org.apache.log4j.HTMLLayout

      e) Run you test script and open the file ‘applog.html’ in browser view

      Fell free to ask more questions

  • In your CommonFunctions .java , handleNewTab method won’t work in some cases.
    Example :
    1. On Main window click something to open popup (Say popup-A)
    2. In popup-A click something which leads to open another popup (Say popup-B)

    In above case it won’t return popup-B window ID as there are three windows in open state (main window, popup-A, popup-B)

    see this post : http://goo.gl/BHN1J

    • For a new tab we are using this code:
      Set allWindowHandle s = driver.getWindowHandles();
      String window0 = (String) allWindowHandle s.toArray()[1];
      driver.switchTo().window(window0);

      As per you comment, to first switch to pop-up A we have to use following same code after clicking on the main window:

      Set allWindowHandle s = driver.getWindowHandles();
      String window0 = (String) allWindowHandle s.toArray()[1];
      driver.switchTo().window(window0);

      //Then we’ll click on some link in pop-up A
      // To switch to pop-up B we’ll again use the above code
      driver.switchTo().window(window0);

      ////Try using the following code////

      _driver.get(“http://www.grazitti.com”);

      //click on read more button under latest blog
      _driver.findElement(By.xpath(“.//*[@id=’ft_bottom’]/div/div/div/div[2]/div/div[1]/div/div/div[1]/p[2]/a/img”)).click();

      Set allWindowHandle s = _driver.getWindowHandles();

      //Switch to the new window
      String window0 = (String) allWindowHandle s.toArray()[1];
      _driver.switchTo().window(window0);

      //click on the link “Grazitti Interactive” in the new window
      _driver.findElement(By.linkText(“Grazitti Interactive”)).click();

      //Switch to the new window
      _driver.switchTo().window(window0);

      //click on the link “Search Engine Optimization” in the new window
      _driver.findElement(By.linkText(“Search Engine Optimization”)) .click();

  • I have downloaded today, i will definitely come back with the bunch of review comments.
    Thanks for the download link.

    • Thank you for using our Selenium 2 Framework.We are happy to see such a great success of our product. We would love to hear from you and it would be great if you return the favor by recommending our product here – http://www.linkedin.com/company/grazitti-interactive/selenium-2-framework-1022651/product?trk=biz_product

  • Thanks a lot Guys,

    Great Initiative by you for new learners of Selenium. Looking forward for more frameworks.

    Will also contribute towards Open Source when got expertise.

    • Thank you for using our Selenium 2 Framework.We are happy to see such a great success of our product. We would love to hear from you and it would be great if you return the favor by recommending our product here – http://www.linkedin.com/company/grazitti-interactive/selenium-2-framework-1022651/product?trk=biz_product

  • Had a sneek peek at your grazziti frame work and it seems promising .

    • Thank you for using our Selenium 2 Framework.We are happy to see such a great success of our product. We would love to hear from you and it would be great if you return the favor by recommending our product here – http://www.linkedin.com/company/grazitti-interactive/selenium-2-framework-1022651/product?trk=biz_product

  • great

    • Thank you for using our Selenium 2 Framework. We are happy to see such a great success of our product. We would love to hear from you and it would be great if you return the favor by recommending our product here – http://www.linkedin.com/company/grazitti-interactive/selenium-2-framework-1022651/product?trk=biz_product

  • I tried to execute the framework work.But the reports are not getting updated could you please let me know how i can see the test i executed in the report.

    • Hi Sree,
      You need to give your test name in build.xml target name like:
      target name=”LoginTest ” and
      test name=”com.Test Scripts.LoginTe st” todir=”${junit.output.dir}”
      And then refresh the project and check the reports via index.html in Reports folder

    • Hi,
      Can you help me how to execute this framework step by step

      • Hi Harish,
        Following are the steps to configure framework in eclipse:-

        a) Extract the provided zip folder
        b) Open eclipse and create a new project using the extracted zip folder
        c) Run the sample test script LoginTest.java by using the JUnit option
        d) Create new test scripts in the folder ‘TestScipts’ and run them using JUnit option

  • For you first Question : We have provided required webdriver jars in our framework.You just need to import the extracted Grazitti_Fremwo rk in Eclipse.
    For second Question : We have done the reporting part via ANT build.xml

    • Thanks Rama for the response. Will sure to give it a try.

  • Thanks Rama. I have a basic set up of Selenium installed with Eclipse, required webdriver jar files . And I was able to start off with opening the browser and do some actions. Having said that, these were done standalone, without using your framework. Is the same set up sufficient to use the framework? And other question is, As far as i know, the reporting part is being done by TestNG framework. could you give some info on that. Apologies for long comments.

  • Hi Sachin,
    Yes, you are absolutely correct this framework is for UI automation of webbased applications as Selenium itself is for Web based applications only.
    Although the framework is independent of language to be used for scripting.
    The Framework supports your scripts. It drives your testcases and utilities that you require in your scripts. It helps you in writing and maintaining your testscripts by adding a layer of abstraction to your code. Also, framework is independent of testscripts.

  • Hi Rama,

    Thanks for sharing the framework. Couldnt wait for the download , but just one question. This framework can be used for UI automation of webbased applications right.. I am relatively new to Selenium, though pretty familiar in automation concepts through QTP.

    Thanks in Advance,
    Naga Sachin

  • Hi Brahmananda,
    Thanks for your valuable points.
    1.Can u find some alternative than junit
    Yes,you can also use TestNG. TestNG is meant for high-level testing and complex integration test.Its flexibility is especially useful with large test suites. In addition, TestNG also cover the entire core JUnit4 functionality.

    We have been using JUnit as we do not have such big and complex test cases, that too it was meant for providing a start to selenium automation testers. Advanced and better approaches are always welcome to this framework.

    2.how can we handle multipleData in one test .
    Handling multiple Data in one test is possible by reading data from different excel resources in different methods. Like, reading username and password in login method from one sheet and reading user information in info method from different sheet.

  • Thanks very much for cutting edge solution on selenium . it is page service model approach .I want add some point.
    1.Can u find some alternative than junit
    2.How can we handle multipleData in one test .z

  • Very nice framework – thank you. I especially like the way you read the xls files – I was using the poi api but your alternative is much easier.

  • Hi Deepak,

    We have not planned to use keyword driven approach in this framework.

    Data Driven Framework is more of ease to get understood by the beginners and this framework is basically for helping testers starting their automation and needing a structured and defined way to move ahead.
    We have following disadvantages with keyword driven framework.

    1) Initial investment being pretty high, the benefits of this can only be realized if the application is considerably big and the test scripts are to be maintained for quite a few years.
    2) Automation expertise is required to create the keyword driven framework.

  • I liked it too.. thanks.Are you guys also planning to incorporate the keyword driven approach within this framework ?

  • Thanks a lot Andrey for the appreciation.
    As far as I have understood the good practices to design a framework, it should not contain any methods whose sole purpose is to verify any specific condition or result. This should be done solely within the test harness, using JUnit framework asserts.
    That’s why we used asserts within the test class.
    Please share your suggestion on my understanding so that the better approach can be followed.

  • Hi Rama, good job! My suggestion is take out ‘asserts’ to another class (easy to expand and customise).

  • Hi basavraj,
    Please fill the above form, mentioning you email address and we will send you the download link for the framework.

  • Hi Anirudh,
    Our framework is developed to help beginners of selenium automation to start their scripting in a formatted and easy way and we have also provided some mostly used functions and facilities in it to smooth-en their testing.
    Check it out and let us know if you have any query

  • Wanted to know abt your selenium framework

  • Please send download link

Products Selenium Data Driven Framework