From the course: Advanced Selenium: Automation Frameworks

Unlock the full course today

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

Testing with Watir: Navigate and wait

Testing with Watir: Navigate and wait - Selenium Tutorial

From the course: Advanced Selenium: Automation Frameworks

Start my 1-month free trial

Testing with Watir: Navigate and wait

- [Instructor] Okay, so let's go ahead and get started with Water. Water defaults to using the Chrome browser but with the web driver's gem installed, you could tell Water to use any browser that's installed on your computer. First things first, in the tutorial_spec.rb file, we're going to create a test block. Rspec uses descriptive test blocks that describe what an application should be capable of doing. So go ahead and make some room. Notice that when you start the test block, Atom will add the end keyword for you. Let's go ahead and start our browser session. Next, we'll tell it to navigate to our website, explorecalifornia.org. And then we'll load the contact form. Let's go ahead and have a look at our browser. Navigate to the Contact form. Go ahead and scroll down until you see a field marked Name. We want to ensure that both the first and the last field in the form were loaded every time we start our test.…

Contents