https://github.com/pnakhat/jbehave-selenium/tree/master/jbehave-selenium
I have created this project to give some starting point for people who want to use Jbehave , Selenium with Page objects. Please clone this github repository.
github, Jbehave, page objects, selenium
WebDriver is a java based libraries to write automation tests for web applications.
This an awesome driver to test application for various reasons. This is also a better alternative for selenium. Webdriver works on the Principal of talking to browser naively, unlike selenium which works through proxy using javascript.
One thing is obvious immediately is ‘speed’, webdriver tests run much faster then selenium, reason explained above.
Selenium WebDriver
Works on proxy Works natively with Browser
Supports Major browsers Supports IE, Firefox , HtmlUunit and Iphone
API is quiet complex Simple API
Supports multiple language Only Java at the moment
to write tests
- Supports HtmlUnit driver to run tests faster
Webdriver is going to become Selenium 2.0 eventually. I personally think, webdriver is next big thing in web functional testing after selenium.
Thanks to Simon Stewart for this awesome tool.
One of my friend recently had to attend an interview for a company for a selenium – tester job profile. Then he asked me, what should I prepare for? Then I thought of putting together this post, as selenium is now an industry accepted tool.
Simple explanations
What is Selenium ?
- Its a web testing tool.
How it works?
It works through a proxy, using javascript to driver the tests.
What browsers does it support?
Firefox – 3.0/2.0
IE – 7/8
Safari
What programming languages can you use to write the tests?
| Language |
Selenium IDE |
Selenium Remote Control |
Selenium Core |
| C# |
Generate code |
Library (“driver”) support |
n/a |
| Java |
Generate code |
Library (“driver”) support |
n/a |
| Perl |
Generate code |
Library (“driver”) support |
n/a |
| PHP |
Generate code |
Library (“driver”) support |
n/a |
| Python |
Generate code |
Library (“driver”) support |
n/a |
| Ruby |
Generate code |
Library (“driver”) support |
n/a |
Preparing for Interview
Tips :
1) Understand the basics right :
- Basics of Web testing
2) How selenium Indentifies web element on the page?
- By Id or Name or Using an Xpath
3) Different Flavours of selenium
- Selenium Core
- Selenium RC
- Selenium Grid
4) Selenium - How to use IDE?
5) Is IDE good enough to automate your tests?
6) What are the practical issues, while using selenium?
7) Selenium Vs Other tools (Like QTP)
8) Multi browser testing with selenium (Or Selenium Grid)