I am new to selenium webdriver coding and i am stuck with the basic issue .Below is the code.
public static void main(String[] args) {
WebDriver driver;
System.setProperty("webdriver.gecko.driver","c:/geckodriver.exe");
driver =new FirefoxDriver();
driver.get("http://newtours.demoaut.com");
driver.findElement(By.linkText("REGISTER")).click();
driver.findElement(By.name("firstName")).sendKeys("Vansh");
driver.findElement(By.name("lastName")).sendKeys("kumar");
driver.findElement(By.name("phone")).sendKeys("9887654321");
---}
In the above code after launching my application and clicking on Register link i am able to got to registration page but i am not able to enter values for firstname,lastname and phone. Please help what am i missing here.
Thanks