A major key to successful Appium tests is making sure to only interact with elements when they are actually present and ready. Using WebDriverWaits, you can ensure to follow best practices around waiting for elements.
- [Instructor] Now that we know … how to find elements in Appium, … it's important to learn … how to find elements at the right time. … The code that we've been writing so far … looks similar to what I have on screen now. … We start our Appium session. … Then we wait for three seconds using thread.sleep. … Then in our test method we find the login screen element. … The reason we have thread.sleep here … is that without it our element might not be found. … Whenever we call driver.findelement, … Appium will look to see if it can find the element … at exactly that time. … Appium is not super smart … and doesn't know what's going on in the app. … So it doesn't know if it should wait for the app to load … or for something else to happen … before it tries to find the element. … A human user would, of course, … notice that the app is still loading … and not try and tap any buttons. … But Appium is not yet that intelligent, … so we have to make sure to build that intelligence … into our test scripts. …
- Appium server, clients, and drivers
- Appium setup
- Starting and stopping sessions
- Finding and using elements
- Intermediate Appium scripting
- Touch actions
- Mobile web testing
Skill Level Intermediate
Effective Android Testing for Mobile Developerswith Chiu-Ki Chan2h 56m Intermediate
Robot Framework Test Automation: Level 1 (Selenium)with Bryan Lamb6h 23m Intermediate
The Appium drivers4m 41s
2. Appium Setup
3. Appium Sessions
Session capabilities6m 22s
4. Finding and Using Elements
5. Intermediate Appium Scripting
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.