Meaghan Lewis demonstrates how to compare that the actual behavior of the test matches the expected behavior of the test by using assertions with the help of JUnit.
- [Instructor] Let's confirm the behavior of our test.…After the form is submitted the application redirects…to the thanks page shown here.…There is a header on this page that says…"thanks for submitting your form" and an alert banner…which says "the form was successfully submitted".…At the end of the test from the last video.…I'll confirm that the submission was successful.…The first thing we'll want to do before confirming…this submission is to add an explicit wait…which will wait for this thanks page to appear.…I'll need to find a specific element to wait for…and I'm gonna chose to wait for this alert banner here.…
So I'll go ahead and inspect this alert banner…and I see that is has a class of alert…and alert success, I'll go ahead and just grab…the first class of alert and copy that to use…in my test in just a minute.…Next I'll pop over to IntelliJ and I'll open up…the exercise file for this video…at chapter six, 0602, start.…Once this test is open I'll start by going to build…and build the project.…
And once that's successful I wanna focus on adding…
- 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.