title: How to press "TAB" then "ENTER" key in Selenium WebDriver using Java?
body: <p>I am doing automation testing using java with Selenium WebDriver. I want to click on tabs. I would like to check tab functionality.</p>
  
  <p>I can use Tab key to get the button as below:</p>
  
  <pre><code>WebElement webElement = driver.findElementByXPath("");
  webElement.sendKeys(Keys.TAB);
  webElement.sendKeys(Keys.ENTER);
  </code></pre>
  
  <p>I have a form with multiple fields I want to track upon pressing key tab key is my control moving to next field successfully or not. Also I want to check upon which my control is below is my form <img src="https://i.stack.imgur.com/UoGyX.png" alt="image"></p>
  
  <p>But how do I click one by one tab.
  Basically I need to achieve press Tab key and then press Enter key to click the button.</p>
  
  <p>I learning selenium.
  Please help me. Thanks in advance.</p>