I dont fully understand the term 'mobile emulation code'. However, the following opens Chrome as a Browser which may help
1. Download the latest Chrome driver installable from
http://chromedriver.storage.googleapis.com/index.html2. Unzip the file and run the Chromedriver.exe file. This should start the Chromedriver on port 9515
3. Install the Chrome Browser
4. In Selenium webdriver create a Class file and use the following code (adjust the location of the Chrome driver as appropriate
package Trainingpack;
import
org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class chrome1 {
public static void main(String[] args) throws Exception {
System.setProperty("webdriver.chrome.driver","c:\\ca\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("
http://www.google.com");
WebElement searchBox = driver.findElement(By.name("q"));
searchBox.sendKeys(new String[] {"Chrome Driver"});
}
}
Hope that helps