From the course: Python Automation and Testing

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Challenge

Challenge

(upbeat music) - [Instructor] Now that we have looked at how to locate elements using different attributes and different nodes, let's do a small challenge on this and see how far we have gotten with our learning. In this challenge, I have five steps for you, that should take you all of five minutes to do overall. The first step that I want you to do is navigate to the website, selenium.dev. Let's head over to the site quickly and see what it looks like. This is the official Selenium site, selenium.dev. On the site, let's do the following. The first thing you have to do is locate an element by id "gsc-iw-id1" and print it out. Then, locate an element by name, "submit" Then locate an element by heading, "Selenium automates browsers. That's it!" using XPath. And lastly, relocate an element with class "selenium-backers", and print it out. It's a pretty simple challenge. How about you go ahead and give it a shot yourself first. In the next video, we will walk through it step by step and…

Contents