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.

Touch actions: Practice

Touch actions: Practice - Selenium Tutorial

From the course: Mobile Testing with Appium

Start my 1-month free trial

Touch actions: Practice

- [Instructor] Okay, let's put our knowledge of the Touch Action API into practice. I'm starting out in the Ch_05_03_Touch_Actions_Before.Java file. All I've got in my test method is code that gets me to the list view of my test app by finding the list demo item and clicking it. And we want to wait for one of the list items to appear, so we know that at this stage in the test we're at the particular list view we care about, and that we want to run our swipe in, so let's do that. We will wait until expected conditions, presence of element located by, we're going to use accessibility ID, and I know that there's a cloud at the top of the list called Altostratus. So we'll wait for that. Let's go ahead and run our tests at this point just to make sure we get to the list view. Of course, I've got my Appium server up and running and the Android emulator. Great. We got to the list view and we had a pass, which means we found the correct element there. Now we need to build out our swipe. So…

Contents