From the course: Mobile Testing with Appium
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Locator strategies and finding elements: Theory - Selenium Tutorial
From the course: Mobile Testing with Appium
Locator strategies and finding elements: Theory
- [Instructor] Once you have an Appium session running, you can use it to automate your mobile app for the purpose of testing. Of course, you'll want to have an idea of what you want to test first. For example, let's say you want to test the login functionality of your app works. How would you do this manually? Well, you'd navigate to the point in your app where there are text input fields for usernmae and password entry and enter appropriate text in those fields. Then you'd look for a login button of some kind and tap it. Finally, you'd look at the resulting screen and make sure the login was successful, that there were no error messages, et cetera. When writing Appium tests, we follow exactly the same process. We just turn each of these manual steps into code. The manual step often goes unnoticed by us as humans, but is extremely important. We have to actually locate the UI element we want to interact with. In this case, we have to find the username field before we can enter our…
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)
Locator strategies and finding elements: Theory3m 38s
-
(Locked)
Locator strategies and finding elements: Practice5m 24s
-
(Locked)
Waiting for elements: Theory3m 24s
-
(Locked)
Waiting for elements: Practice3m 35s
-
(Locked)
Basic element interaction10m 15s
-
(Locked)
Element discovery: Getting app source6m 30s
-
(Locked)
Element discovery: Appium inspector6m 2s
-
(Locked)
Challenge: Find a new element1m 6s
-
(Locked)
Solution: Find a new element7m 30s
-
(Locked)
-
-