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
From the course: Python Automation and Testing
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
What is the HTML DOM structure?1m 32s
-
(Locked)
Locating elements by ID5m 22s
-
Locating elements by name2m 8s
-
(Locked)
Locating elements by XPath6m 18s
-
(Locked)
Locating elements by class3m 6s
-
(Locked)
Challenge1m 20s
-
(Locked)
Solution6m 11s
-
(Locked)
Challenge1m 44s
-
(Locked)
Solution7m 44s
-
(Locked)
Challenge1m 26s
-
(Locked)
Solution5m 58s
-
(Locked)
-
-
-