Advanced Selenium: 3 Synchronization Strategies

Advanced Selenium: 3 Synchronization Strategies

2h 30mAdvanced2020-03-19

Authors

Alan Richardson

Alan Richardson

Consultant specializing in agile software testing and development

Course details

One of the most common issues associated with automating GUI applications is flakiness: when sometimes a test works, but sometimes it fails—even though neither the application nor the test changed. One of the most common causes of intermittent execution is a failure to synchronize effectively. In this course, learn how to avoid flaky tests by effectively synchronizing your test code with the application state using Selenium WebDriver. Instructor Alan Richardson shares fixes to common problems and discusses the range of solutions available to help make WebDriver test automation robust and reliable. Discover how to use built-in WebDriver classes such as WebDriverWait, as well as external libraries like Awaitility. Plus, learn how to use JavascriptExecutor to run JavaScript as part of your WebDriver code; this can help you create workarounds and synchronize against internal application state.

Skills covered

SeleniumSoftware TestingAdvancedOpen SourceSoftware Development

Concepts

Introduction

  • End flaky tests by synchronizing well
  • What you should know

Introduction

  • Why do you need synchronization
  • WebDriver built-in waits
  • Implicit wait vs. explicit wait

Synchronizing with WebDriverWait

  • What is WebDriverWait
  • WebDriverWait usage patterns
  • ExpectedConditions
  • Writing a custom expected condition
  • Configuring WebDriverWait

Synchronizing with JavascriptExecutor

  • Overview of JavaScriptExecutor
  • Waiting for JavaScript
  • Using JavaScript for waiting

Synchronized Components

  • WebDriver synchronized components
  • Custom synchronized components

Synchronization Libraries

  • Introducing thewaiter
  • Introducing Awaitility
  • Creating your waiting libraries

Waiting Considerations

  • Remote WebDriver
  • General hints and tips

Conclusion

  • Next steps
80,000 Toman