Using below code i am able to open Instagram but i am not able enter user name password and further process please help
package logintesting;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class Loginpage {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver","D:\\selenium\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
//driver.get("https://www.google.com/");
driver.get("https://www.instagram.com/");
driver.manage().window().maximize();
WebElement e = driver.findElement(By.name("q"));
e.sendKeys("Instagram");
e.submit();
//WebElement click = driver.findElement(By.xpath("//div[@class='g']//div//div[@class='rc']//h3[@class='LC20lb DKV0Md'][contains(text(),'Instagram')]]"));
//click.click();
driver.findElement(By.name("UserName")).sendKeys("xyz");
driver.findElement(By.name("password")).sendKeys("abci");
driver.findElement(By.xpath("//div[text()='Log In']")).click();