Meaghan Lewis explains why it is necessary to scroll to elements at times and walks through an example of how to do so in a WebDriver test.
- [Instructor] In this video, let's automate a page element…that requires scrolling it into view.…When automating a long form or page with lots of content,…it can be necessary to scroll to the element to be tested.…On this scroll page, we see lots of text…and after scrolling down a bit to the bottom of the page,…there are two fields at the end to enter name and date.…Let's automate a test to scroll these text fields into view…and then send values to them.…
From the IntelliJ welcome menu,…I will select to open the exercise files for this video.…At 02_04, I will select to open the start directory.…Once the project is open,…I will start by building by selecting build…and build project.…And once that is successful,…I will focus on the scroll to element test class.…Just like the test classes in previous videos,…this test class just contains the basics to get started…by setting the location to the chrome driver,…creating a new instance of the chrome driver,…navigating the driver to the scroll test page,…and then quitting the driver.…
- 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.