Mobile Website Automation android


I am relatively new to Appium but i loved using it to automate some android applications in java.
Now i need to automate a website on android mobile using java.

I need some guidance on how to set up Appium or the Java code to start running automation tests on android mobile websites.

Thanks in advance

I am using the following code for the emulator.
The same code is opening up Chrome on my desktop and opening the URL specified but when i specify the platformName , deviceName and the other parameters for Appium, it opens the Chrome on my emulator but does not enter any URL…

import java.util.concurrent.TimeUnit;
import io.appium.java_client.AppiumDriver;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;

public class Webpage
AppiumDriver driver;
public void foo()
System.out.println("–Test Passed–");

public void setUp()
	DesiredCapabilities capabilities= new DesiredCapabilities();
	capabilities.setCapability("platformName", "Android");
	capabilities.setCapability("deviceName", "Android Emulator");
		driver= new AppiumDriver(new URL(""), capabilities);
		driver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);
	catch(Exception e) 
		//TODO Auto-generated catch block
	//driver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);
public void tearDown() 


Use selenium-server-standalone-2.42.2.jar. Worked for me.


Thanks for the answer…
I have already started working using appium for automating moblie websites with the help of a few tutorials.

Thanks Anyway…

@Ram - Can you give me links for the tutorials?