Appium supports the automation of mobile web applications. Web apps are not really the applications but they are really websites which changes its layout as per the mobile device display and feels more like mobile native application. Being a website they run on a browser which can be Android, Safari, Chrome, Opera Mini or any other mobile browser.
Make sure Appium has been installed along with all the dependencies. If not follow the instruction mentioned here.
Script for mobile web app automation
importjava.net.MalformedURLException;importjava.net.URL;importorg.openqa.selenium.By;importorg.openqa.selenium.WebDriver;importorg.openqa.selenium.WebElement;importorg.openqa.selenium.remote.DesiredCapabilities;importorg.openqa.selenium.remote.RemoteWebDriver;importorg.openqa.selenium.support.ui.ExpectedConditions;importorg.openqa.selenium.support.ui.WebDriverWait;importorg.testng.Assert;importorg.testng.annotations.Test;publicclassAppiumMobileAppTest{ WebDriver driver;@TestpublicvoidandroidB…
Make sure Appium has been installed along with all the dependencies. If not follow the instruction mentioned here.
Script for mobile web app automation
importjava.net.MalformedURLException;importjava.net.URL;importorg.openqa.selenium.By;importorg.openqa.selenium.WebDriver;importorg.openqa.selenium.WebElement;importorg.openqa.selenium.remote.DesiredCapabilities;importorg.openqa.selenium.remote.RemoteWebDriver;importorg.openqa.selenium.support.ui.ExpectedConditions;importorg.openqa.selenium.support.ui.WebDriverWait;importorg.testng.Assert;importorg.testng.annotations.Test;publicclassAppiumMobileAppTest{ WebDriver driver;@TestpublicvoidandroidB…