课程: Mobile Testing with Appium
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Solution: Automate a web form
(upbeat electronic music) - [Instructor] All right, let's have a look at how I would address the task of automating Appium Pro's contact form. I've got chapter 5-7 solution before .java up, and first of all, we need it to open the site menu. So right now, we're just navigating to the site and now we want to open the menu. We actually saw how to do this in a previous video, so we can just do it again here. We will wait for an element to appear, that element will be our toggle menu. We're going to find it by it's CSS class, toggle menu, and we'll click it. That will open up the menu. Next, I want to click the contact link to get to the contact page. I don't need to wait for it, because once the menu's open, the contact link will be immediately available. So I'll use driver.findElement, I'm going to find it by it's link text, although there are other ways you could've chosen to find it. It's link text is contact, and we want to click it this time to get to the contact page. Now we know…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。