非常好的selenium学习文档。selenium与ant,testng,reportng等一起可搭建自动化测试框架,非常好用Selenium Testing Tools CookbookCopyright c 2012 Packt PublishingAll rights reserved No part of this book may be reproduced, stored in a retrieval system, ortransmitted in any form or by any means, without the prior written permission of the publisherexcept in the case of brief quotations embedded in critical articles or reviewsEvery effort has been made in the preparation of this book to ensure the accuracy of theinformation presented. However, the information contained in this book is sold withoutwarranty, either express or implied. Neither the author, nor Packt Publishing, and its dealersand distributors will be held liable for any damages caused or alleged to be caused directly orindirectly by this book.Packt Publishing has endeavored to provide trademark information about all of the companiesand products mentioned in this book by the appropriate use of capitals. However, PacktPublishing cannot guarantee the accuracy of this informationFirst published: November 2012Production reference: 1161112Published by Packt Publishing LtdLivery Place35 Livery StreetBirmingham B3 2PB, UKSBN978-184951-5740wwpackt pub. comCover Image by Faiz fattohi fai zf at t ohi ay l comCreditsAuthesh GundechaYashodhan dereReviewersProofreadersV, Vamsi chandraMatthew HumphriesLydia May MorrisAcquisition EditUsha lyHemangini bariLead Technical editorAzharuddin sheikhValentina d'silvaAditi gajarTechnical editorsMayur huleProduction CoordinatorAnkita shashiArvindkumar guptaVeronicaPrashant salviCover workArvindkumar GuptaBrandt d melloLaxmi subramanianAlfida paivAbout the AuthorUnmesh Gundecha has a Master's Degree in Software Engineering and around 10 yearf experience in Software development and Testing Unmesh has architected functionalStest automation projects using industry standard, in-house and custom test automationframeworks along with leading commercial and open source test automation tools.Presently he is working as Test Architect with a multinational company in Pune, India.We would be remiss if we did not thank all of the people who helped makethis book a reality. This includes the wonderful people at Packt Publishing,in particular Usha lyer -Acquisition Editor, who proposed that I write thisbook. I'm grateful for all the help I got from the editorial staff at PacktPublishing in reviewing this book, particularly, AZharuddin Sheikh, SonaliTharwani, Mayur Hule, Veronica Fernandes, Prashant Salvi, and especiallyYashodhan dere project Coordinator, who coordinated the progress of thisbook, by ensuring that I stayed on trackThis book has benefited a lot from a great team of technical reviewers. Idlike to thank each of them for volunteering their time reviewing drafts ofthis book and providing valuable feedback dave Hunt who is Seleniumcontributor, for his insight into some key areas; Vamsi Chandra for makingsure the code samples for all chapters work by executing each and everysample; and Tarun Kumar for his early feedbackI would like to thank my wife Punam, for supporting me while I was writingthis book and making sure I did things on time, and my friends andcolleagues at work for supporting me for all these yearsFinally, a big thanks to selenium Development and User Community forbuilding this wonderful toolAbout the reviewersV Vamsi Chandra is a Qa automation lead at the technology company Everlution Ltd andhas overall five years of experience in the software industry. He has completed his Mastersin Mobile computing and Networking, and has studied bachelor of Technology in ComputerScience and Engineering. He holds various certifications such as ISEB-ISTQB, MCP, MCSE,MCITP, and ITIL V3. He has been involved in to improving the quality of the product by testingith various tools, using Automation and Manual, works of Software Development Life cycle(SDLC), Software Testing Life Cycle(STLC), and Agile(scrum)testing methodology to deliverhigh standard/complex products to the clientHe has worked in various sectors in Everlution Ltd such as financial, banking, commercial,and retail, has handled complex projects, and designed customized frameworks for Fifth ThirdBank-USA, Sainsburys, Myindospace, Nationwide Building Society, and Mergermarket. Thecompany also delivers web-based productsI would like to thank mr Unmesh Gundecha for this wonderful and excitingopportunity to reveal my thoughts in my own platform and to explore a bitbeyond technologies. I am also thankful to the team for supporting andcommunicating fully to achieve this successDave Hunt lives in Kent, UK with his wife and young son he has always had a passion forturning mundane tasks into one-click solutions, and when he discovered selenium back in2005, his career in software testing and automation development was sealed. He works fromhome for Mozilla corporation, where he assists teams in creating automated tests for theirprojects- ranging from Mozilla's web properties to the Firefox web browser and Thunderbirde-mail clientwww.Packtpub.comSupport files, eBooks, discount offers and moreYoumightwanttovisitwww.PacktPub.comforsupportfilesanddownloadsrelatedtoyour bookDid you know that Packt offers e Book versions of every book published, with PDF and ePubfilesavailableYoucanupgradetotheebookversionatwww.PacktPubcomandasaprintbook customer, you are entitled to a discount on the e Book copy. Get in touch with us atscrviccpackt pub comfor more detailsAtwww.PacktPub.comyoucanalsoreadacollectionoffreetechnicalarticlessignupfor a range of free newsletters and receive exclusive discounts and offers on Packt booksand ebooksPUPACKTLIBht tp://Packt Li b. Pac kt Pub. comDo you need instant solutions to your IT questions? PacktLib is Packt's online digital booklibrary. Here, you can access, read and search across Packt's entire library of booksWhy Subscribe?Fully searchable across every book published by packtCopy and paste, print and bookmark contentb on demand and accessible via web browserFree Access for packt account holdersIfyouhaveanaccountwithPacktatwww.PacktPubcomyoucanusethistoaccessPacktLib today and view nine entirely free books Simply use your login credentials forimmediate accessI would like to dedicate this book to my parents, who have raised me to be theperson I am today and to my loving wife Punam for giving me the support andencouragement to write this book!