Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I am learning Selenium Webdriver on my own, with a little bit of Java Programming background in my experience since the past three weeks.

In this time, I have learnt the following functionalities of Selenium by reading blogs/Practicing the codes which were found across google. 01. Element Locators 02. Mouse and Keyboard Events 03. Actions which can be performed on buttons, Dropdowns and ListViews. 04. Implicit and Explicit waits. 05. Uploading/Downloading files [With the AutoIT tool] 06. Data Driven testing. ie., Reading data from excel files and tables.

I just want a little more light to be shed as to are there any other functionalities of Selenium Webdriver which has to be learnt.

And one more thing am unsure about is- Can we use selenium to do stuff like database testing? Can we use it to retrieve data in database?

Because I have come across few posts which tells its not possible and there are some other posts which states it as possible.

Please shed a little knowledge on these things and help me out!! Thanks in advance.

share|improve this question

3 Answers 3

up vote 0 down vote accepted

Selenium can be used to almost everything that you can do manually on a web application including:

  1. Navigating through a web site/app.
  2. Checking the site/app flow by performing actions such as clicking buttons, interacting with pop-ups, sending/receiving/storing data, uploading/downloading files.
  3. Comparing images/graphs(Never done it myself. It's probably got more to with Java than Selenium)
  4. Browser compatibility testing(FF is default. You have to download and pass the drivers for other browsers)
  5. Parallel testing either by launching multiple classes simultaneously(more than one way to do this) or by using Selenium Grid.
  6. Making your automated scripts a part of the Continuous Integration process.
share|improve this answer
    
For #3 you can take screenshots of the browser window through Selenium (save_screenshot), then save the images to a folder for manual review or use a diff'ing framework for processing. –  ckb Apr 28 at 21:35

No, you cannot use Selenium Webdriver to retrieve data from a database -- unless you were to access the data through a web browser. Selenium is a library for remote-controlling a web browser.

share|improve this answer
    
Thanks a lot for the reply. Could you plz shed light on any other functionalities supported by selenium except for the things I have mentioned above. –  Pratibha Apr 25 at 5:45

Selenium Webdriver by itself is just a tool that uses the browser as you tell it to (clicks, setTexts,waits for objects, etc...).

With Java (C#, Ruby, etc...) you can do all of that that you asked, it has nothing to do with webdriver itself.

Google something as "Access database using Java" or "Compare Files/images using Java" and you can find all the info you want with detailed tutorials.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.