Selenium is an open source toolkit for web applications automation test, supporting almost all types of web browsers like IE, Firefox, or Opera. Selenium can drive web browsers to simulate human actions like clicking a button, input data etc, also support recording users' operations and translating actions scripts to code of several programming languages such as Java, Python... In one word, Selenium is an powerful toolkit for professional software test, but it's also easy enough to use by usual web users.
Selenium Homepage is here: http://seleniumhq.org
Selenium contains several components: Selenium RC, Selenium IDE, Selenium Core... As our surf automation purpose, we can finish it by Selenium IDE. Selenium IDE is a plug in for Firefox, provides friendly interfaces to record and drive functions. OK, let's begin now:
- Download Selenium IDE here, and when download is complete, Firefox will prompt if install this plug in, choose YES, then Selenium IDE will soon be installed in a while.
- After you restart your Firefox, you will find Selenium IDE at Menu->Tools->Selenium IDE.If you are ready to record your repeated actions, please start by click it.
- When you open main UI of Selenium IDE, as you can see, the top-right red circle button is keeping pushed, which means now Selenium IDE is ready to detect all browser actions from you.
- Next, let me take a google search for example. I type www.google.com in Firefox, go. At simple search input control, I type "Associated Content", click search button. And get results.
- I go back to Selenium IDE, and stop recording. Then you will find all actions just now has been written as scripts by Selenium IDE, each line contains operation information: command, target,value. "Command" stand for user's operation, like click, input data etc. "Target" means which web control you operated on. If you choose "source "tab ,you will see html codes.
- After recording, please set a time interval between each actions, maybe you want to see a slower or quicker automation screen, so right click-> Insert New Command, type "SetSpeed" for command, set "15000" for Target, 15000 means time interval is 15 seconds.
- All are ready, now just click the "Play the current test case", you will see Firefox automatically go to google, and type "Associated Content", search. All of these actions is done by browser itself without your attention. Yes, you could have a cup of coffee, and focus on valuable work you like.please remember save the scripts on your local hard disk in case of next use.
Now you can automate your repeated work by Selenium, in fact Selenium can do much more than what we have done, but for our common web users, the basic automation function has much met our requirements .
Published by Tyler
I am working as a professional software engineer at a worldwide IT company, focus on quality design and assurance of enterprise related web applications,interested in IT trends, events,techniques. I ever exp... View profile
- Eco-Friendly Surf School in San DiegoA reviw of Surf eCo Surf School, the first environmentally friendly Surf School in San Diego.
- Girls' & Women's Surf & Skate Clothing - No Longer Just T Shirts, Baggy Jeans, and...With a strong history rooted in extreme sports and outdoor lifestyle, Girls' and Women's Surf and Skate Clothing Brands are now and entire mainstream fashion style.
Dick Dale Brings Summer Surf Music Back to the Santa Monica PierDick Dale, the originator of the Southern California surf music sound, brings his signature style to the Santa Monica Pier summer concert series.- The Best Place to Rent a Surf Board in HaleiwaThe best places to rent surf boards from in Haleiwa.
- Three Ways to Display Sample HTML in a Web BrowserIf you want to display some sample HTML, you've got a tiny problem. The browser thinks that it should render the code. This guide suggests three ways that you can force the browser to display the markup un-rendered.
- How to Surf the Web Anonymously
- Could Selenium Supplementation Improve Asthma Symptoms?
- Loading CSS Stylesheets Dynamically (Browser Evalution)
- The New Google Chrome Web Browser
- Google Launches a New Web Browser - Google Chrome
- Recovery Methods for Triathletes: Rest and Selenium Tablets
- Download Torrents Directly from Your Web Browser





1 Comments
Post a Commenthanks for sharing.. I am also using Selenium and also developed keyword driven framework using selenium and Excel.. It is amazing.. With FIT and selenium we can also do keyword driven framework. thanks! http://software-development-testing.blogspot.com/