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.

Mobile web testing: Theory

Mobile web testing: Theory - Selenium Tutorial

From the course: Mobile Testing with Appium

Start my 1-month free trial

Mobile web testing: Theory

- [Instructor] So far, we've been using Appium exclusively for automating native mobile apps. But people use their mobile devices for browsing the web, too. It'd be great if we could automate mobile websites for the purpose of testing our web applications on mobile and not just native apps. Luckily, this is made really easy with Appium. Because Appium is based off of the Selenium WebDriver API, your Appium client library already has web automation concepts built right in. For example, here are a few commands you have access to in the Appium client that don't make sense in the context of native apps, driver.get sends a web browser to a specific URL, driver.getTitle gets the title of the currently loaded webpage, and there are also web-specific locator strategies. For example, finding an element via its cssSelector. We haven't looked at any of these commands yet, because they are for web browser automation and not native app automation. But Appium also knows how to launch built-in web…

Contents