@Test
public void KeyboardactionNewPrivateWindow() throws AWTException
public void KeyboardactionNewPrivateWindow() throws AWTException
{
driver.manage().timeouts().implicitlyWait(9, TimeUnit.SECONDS);
driver.get("http://seleniumsubbu.blogspot.in/");
driver.manage().timeouts().implicitlyWait(9, TimeUnit.SECONDS);
driver.get("http://seleniumsubbu.blogspot.in/");
Actions act=new
Actions(driver);
act.contextClick(driver.findElement(By.linkText("seleniumsubbu"))).perform(); // Right click action
act.contextClick(driver.findElement(By.linkText("seleniumsubbu"))).perform(); // Right click action
driver.findElement(By.linkText("seleniumsubbu")).sendKeys(Keys.ARROW_DOWN); // Arrow
down 3 times
driver.findElement(By.linkText("seleniumsubbu")).sendKeys(Keys.ARROW_DOWN);
driver.findElement(By.linkText("seleniumsubbu")).sendKeys(Keys.ARROW_DOWN);
driver.findElement(By.linkText("seleniumsubbu")).sendKeys(Keys.ENTER);
// Click on Enter button .driver.findElement(By.linkText("seleniumsubbu")).sendKeys(Keys.ARROW_DOWN);
driver.findElement(By.linkText("seleniumsubbu")).sendKeys(Keys.ARROW_DOWN);
}