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

(soft 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 five minutes to do overall. The first step that I want you to do is go to the Python website, python.org. Let's head over to the site quickly and see what it looks like. This is the official Python site, python.org. On this site, let's do the following: The first thing you have to do is locate an element by id "submit" and print it out. Then locate an element by name "submit" and print it out. Following this, locate the Python logo image in the top header by XPath and print it. And lastly, locate an element by class "search-button" 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 see how to…

Contents