Selenium Essentials get to grips with automated web testing with the amazing power of Selenium WebDriver
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.
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, England :
Packt Publishing
2015.
|
Edición: | First edition |
Colección: | Community experience distilled.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628934206719 |
Tabla de Contenidos:
- 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
- SummaryChapter 2: Selenium WebDriver Cross-browser Tests; Selenium WebDriver compatibility tests; TestNG; Selenium cross-browser tests on the cloud; SauceLabs; BrowserStack; TestingBot; Selenium headless browser testing; PhantomJS; HTMLUnitDriver; Switching user agents; Firefox user agent; Chrome user agent; Tests on specific Firefox versions; Tests from the custom Firefox profile; Tests from the custom Chrome profile; Summary; Chapter 3: Selenium WebDriver Functions; Basic WebDriver functions; Locating WebElements; WebElement functions; Navigation; Cookies; Window functions; Select functions
- 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