From the course: Selenium Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Confirm the behavior of the test

Confirm the behavior of the test - Selenium Tutorial

From the course: Selenium Essential Training

Start my 1-month free trial

Confirm the behavior of the test

- [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…

Contents