Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: The Selenium IDE; WebDriver playback; Prerequisites for the WebDriver playback feature; Locator prioritization; Avoiding Selenium export; The Selenium IDE clipboard; Data Driven tests; User-defined JavaScript methods; Selenium IDE JavaScript functions; Simple JavaScript execution; Mouse scroll; Parameterization using arrays; Selenium Builder; Recording and playback; Data Driven tests; Testing using a JSON file; Testing using an XML file; Selenium Builder on the cloud
Handling alerts and pop-upsMouse and keyboard actions; Summary; Chapter 4: Selenium WebDriver Best Practices; Handling Ajax websites; The isElementPresent method; Waits; Explicit wait; The Fluent Wait method; Sleeper; Timeouts; The PageObject pattern; The PageFactory class; The @FindBy annotation; The @FindBys annotation; The EventFiringWebDriver class; Event-firing WebDriver example; Handling iframes; Handling native OS and browser pop-ups using Java Robot; Downloading browser popups; Screen capture; Firefox profile to download files; The JavascriptExecutor class; Page scroll
Highlighting elementsOpening a new browser window; JavaScript error collector; Summary; Chapter 5: Selenium WebDriver Frameworks; Behaviour-Driven Development; Cucumber BDD framework; Cucumber JVM; JBehave BDD framework; JXL API Data-Driven framework; Reading and writing in an Excel sheet; Simple Data-Driven approach; Data-Driven testing using reusable library; Data-Driven testing using TestNG with @dataProvider annotation; Apache POI Data-Driven framework; HSSF usermodel -- Binary workbook; XSSF usermodel -- SpreadsheetML workbook (.xlsx); SS usermodel -- Binary and SpreadsheetML workbooks
Text file Data-Driven frameworkData-Driven testing using TestNG with @dataProvider -- text file; Properties file Data-Driven framework; Data-Driven testing using TestNG with @dataProvider annotation -- properties fie; CSV file Data-Driven framework; Keyword-Driven framework; Hybrid-Driven framework; Summary; Index
Summary
Annotation If you are a developer who wants to migrate from Selenium RC or any other automation tool to Selenium WebDriver, then this book is for you. Knowledge of automation tools is necessary to follow the examples in this book
Notes
Includes index
Online resource; title from cover page (Safari, viewed April 14, 2015)