Press TAB and then ENTER key in Selenium WebDriver

The Solution to Press TAB and then ENTER key in Selenium WebDriver is


Using Java:

WebElement webElement = driver.findElement(By.xpath(""));//You can use xpath, ID or name whatever you like
webElement.sendKeys(Keys.TAB);
webElement.sendKeys(Keys.ENTER);

~ Answered on 2014-10-29 11:01:06


Most Viewed Questions: