Mobile web app automation

Hi ,

I need to automate mobile web application.

Ex: I need to open chrome browser in Android device and open www.facebook.com & login

Is it required appium?
Can you give me example also

Thank’Q,
JO

Hi GUys,
Please help me

Here is your code:

public void setUp() throws MalformedURLException
{
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(“deviceName”, “”);
cap.setCapability(“platformName”, “Android”);
cap.setCapability(“browserName”, “Chrome”);
cap.setCapability(“newCommandTimeout”, “500”);
driver = new AppiumDriver(new URL(“http://”+ip+":"+port+"/wd/hub"),cap) {

		@Override
		public WebElement scrollTo(String arg0) {
			// TODO Auto-generated method stub
			return null;
		}

		@Override
		public WebElement scrollToExact(String arg0) {
			// TODO Auto-generated method stub
			return null;
		}
	};
	driver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);
	driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
	driver.get("https://m.facebook.com/");
}

For IP: use IP address where you need to run the code
For Port: use port where appium server is running