Selenium WebDriver Quick Start Guide
SeleniumWebDriverisaplatform-independentAPIforautomatingthetestingofbothbrowserandmobileapplications.Itisalsoacoretechnologyinmanyotherbrowserautomationtools,APIs,andframeworks.ThisbookwillguideyouthroughtheWebDriverAPIsthatareusedinautomationtests.Chapterbychapter,wewillconstructthebuildingblocksofapageobjectmodelframeworkasyoulearnabouttherequiredJavaandSeleniummethodsandterminology.Thebookstartswithanintroductiontothesame-originpolicy,cross-sitescriptingdangers,andtheDocumentObjectModel(DOM).Movingahead,we'lllearnaboutXPath,whichallowsustoselectitemsonapage,andhowtodesignacustomizedXPath.Afterthat,wewillbecreatingsingletonpatternsanddrivers.Thenyouwilllearnaboutsynchronizationandhandlingpop-upwindows.Youwillseehowtocreateafactoryforbrowsersandunderstandcommanddesignpatternsapplicabletothisarea.Attheendofthebook,wetieallthistogetherbycreatingaframeworkandimplementingmulti-browsertestingwithSeleniumGrid.
·3.2萬字