课程: Mobile Testing with Appium

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Solution: Find a new element

Solution: Find a new element

(upbeat music) - [Speaker] Now I'll share my own approach to solving the challenge of automating the Echo Box feature of the test app. I've got a code file open here, which has chapter four, nine solution before dot Java. The only thing I've got so far in the test method is the line that sets up the explicit wait that I'll be using, this web driver wait here. My next step is to automate the part of the flow where we navigate to the Echo Box view. But how do I know how to find the Echo Box list element? Well, I'll load up Appium desktop's inspector to find out. So here's Appium desktop, I'll start a server, and then as before, go to the start inspector session. Now, I can reuse a saved capability set from before. Here's the one we want so I can immediately start a session. Okay, now the session is loaded and I can use the screenshot and mouse over it to find the particular element I want, which is this Echo Box item here. So if I click it I can see that the inspector recommends I find…

内容