Tuesday, 12 February 2013

Advantages and disadvantagaes of selenium

          • Advantages and disadvantage of selenium.
  • Advantages :
      1. It supports almost all widely used programming language like Java,C#,Ruby,Python...
      2. It is open source.
      3. It supports all major browsers i.e Firefox,IE,Chrome,Safari etc...
      4. It supports all underlying operating systems i.e Window,Linux,MAC ...
      5. It has selenium IDE is available on Firefox which can be used to record and play simple scripts(It does not support looping,conditional checks,db connection .etc..).
      6. As it can be used with object oriented programming language , so we can use object oriented concepts  with selenium code.
      7. Selenium grid supports concurrent execution on multiple environments(environment could browser , operating system combination), so automation execution time can be minimized up to large extent
  • Disadvantages :
      1. Selenium does not have object repository which is available in QTP,RFT.
      2. Selenium executes bit slows on IE . To make faster we need to add additional line of code in our code.i.e selenium.useXpathLibrary("javascript-xpath").
      3. Selenium does not handle window pop ups like file upload. To solve this issue we can use either Robot class of Java or AutoIt script.
      4. Selenium does not handle alert/confirmation or any pop ups which are present on onload event.
      5. As this is the open source, there is no proper support is available.
      6. To drive the browser execution , it injects its own javascript core into the browser .( While creating a temporary browser profile it injects core folder from selenium server. You can use winrar to show the file inside jar)
      7. Some time selenium does not execute code correctly on updated browser.

No comments:

Post a Comment