Meaghan Lewis explains why synchronization issues can occur when using Selenium WebDriver, what factors lead to synchronization issues, and how to identify when synchronization is a problem.
- [Instructor] Tests usually run really fast,…and that's a wonderful thing.…However, sometimes it may take a moment or ten…for new pages to load,…for certain actions to finish,…or for components to appear.…This chapter's all about synchronization with running tests…and learning how to account for the factors…that can make a test have unexpected behavior.…So, why do synchronization issues occur?…One reason is that browser drivers…operate at different speeds.…ChromeDriver and geckodriver are known to be…the fastest browser drivers,…while others are a bit slower.…
You'll also notice that as the number…of simultaneous tests increases,…there is a discrepancy between running tests…in your local machine as opposed to…running tests in a remote or virtual machine.…Network speed, or connectivity,…can be another factor,…and make a huge difference in how tests execute.…Pages can be slow to render…and this will slow down tests.…So, you can see there are several different reasons…that synchronization issues can creep into tests.…
- Using browser drivers and WebDriver
- Inspecting elements
- Selecting a locator
- Combining multiple CSS attributes
- Using common components
- Implicit and explicit waits
- Automating workflows
- Testing behaviors
- Using page objects
- Connecting to GitHub
- Running on the grid
- Using cloud-based testing tools
Skill Level Intermediate
1. Review Fundamentals
2. Succeeding with WebDriver
3. Using Advanced Locators
4. Interacting with Components
5. Synchronization Issues
6. Putting It All Together
7. Project Integration
Next steps1m 41s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.