Cargando…

Mastering Selenium WebDriver : increase the performance, capability, and reliability of your automated checks by mastering Selenium WebDriver /

Increase the performance, capability, and reliability of your automated checks by mastering Selenium WebDriver About This Book Create an extensible test framework in Java supporting parallel execution with TestNG Understand the power, simplicity, and limitations of the core Selenium framework Write...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Collin, Mark (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2015.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewers
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: Creating a Fast Feedback Loop
  • Making it easy for developers to run tests
  • Building our test project with Apache Maven
  • Running your tests in parallel
  • Parallel tests with TestNG
  • There are no silver bullets
  • Multiple browser support
  • Firefox
  • Chrome
  • Internet Explorer
  • Safari
  • Opera
  • Downloading WebDriver binaries automatically
  • Going headless
  • Summary
  • Chapter 2: Producing the Right Feedback When FailingLocation, location, location
  • Tests are living documentation
  • Reliability
  • The test automation team that works in isolation
  • Oh that test always flickers, don't worry about it
  • Baking in reliability
  • Git
  • SVN
  • Continuous integration is key
  • TeamCity
  • Jenkins
  • Extending our capabilities by using a Selenium Grid
  • A picture paints a thousand words
  • Don't be afraid of the big bad stack trace
  • Summary
  • Chapter 3: Exceptions Are Actually Oracles
  • Are exceptions oracles?
  • NoSuchElementExceptionNoSuchFrameException
  • NoSuchWindowException
  • ElementNotVisibleException
  • StaleElementReferenceException
  • InvalidElementStateException
  • UnsupportedCommandException
  • UnreachableBrowserException
  • SessionNotFoundException
  • Summary
  • Chapter 4: The Waiting Game
  • Are we nearly ready yet?
  • I've timed it and I know it takes 5 seconds for the page to load
  • Machine specifications
  • Server specifications
  • JavaScript engine performance
  • Networks
  • So what do we do?
  • I just want Selenium to do it for me
  • The page load timeoutThe script timeout
  • The implicit wait timeout
  • It can slow my tests down?
  • It can break explicit waits?
  • The solution
  • Using explicit waits
  • FluentWaits
  • the core of explicit waits
  • Functions
  • Predicates
  • Summary
  • Chapter 5: Working with Effective Page Objects
  • Why do you keep repeating yourself?
  • Starting out with page objects
  • Using page objects to ensure good separation of concerns
  • Introducing the Java PageFactory class
  • Using the PageFactory annotations
  • Initializing the proxied objects
  • Creating extensible page objectsTurning your page objects into a readable domain-specific language
  • Fluent page objects
  • Summary
  • Chapter 6: Utilizing the Advanced User Interactions API
  • Getting started with the API
  • Using the API to solve difficult problems
  • Working with hover menus
  • Working with drag and drop
  • Working with offsets
  • It doesn't always work for me
  • Summary
  • Chapter 7: JavaScript Execution with Selenium
  • Introducing the JavaScript executor
  • Let's not get carried away
  • So what should we do with it?