Meaghan Lewis demonstrates how to automate dropdown menus in WebDriver test scripts. Learn about how to successfully select menu items from dropdowns.
- In this video, I'll demonstrate how to automate…a typical dropdown menu, using Selenium Web Driver.…On this dropdown page, in the test application,…there is a single button on the page called Dropdown button.…Clicking this button exposes a dropdown menu…that has a list of all the components…used within the test application.…Clicking on a component in the dropdown list…takes me to that component's page and the test application.…Let's write a test to automate…selecting an option from the dropdown menu.…
I'll start by opening up the exercise file for this video.…And once the test is open,…I will select to build the project,…and after that completes successfully…I'll start filling in the details…for the dropdown test class.…I'll start on line 15 after the driver…navigates to the dropdown page.…I wanted to find a new web element…that's going to be called dropdown menu.…
And to get the locator for this dropdown menu element…I'm gonna hop back over to the test application…to inspect this dropdown button.…Once there, I'll see that it has…
- 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.