title: Submenu click not working with actions
body: <p><a href="https://i.stack.imgur.com/wmQ1s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wmQ1s.png" alt="enter image description here"></a></p>
  
  <p>Not able to click on submenu in our application.  As per the attached picture. I am trying to achieve below scenario steps:</p>
  
  <ol>
  <li>Click on <code>Menu 1</code></li>
  <li>MouseOver on <code>&lt;Item 3&gt;</code></li>
  <li>Click on <code>Sub Item 2</code></li>
  </ol>
  
  <p>I have tried below code and not able to click on Sub Item 2, Because the issue is when selenium is trying to click on Sub Item 2, the focus/cursor/mouseover changed from Item 3 to Item 1. And 2nd sub item present in Item 1 got clicked.</p>
  
  <pre><code>driver.findElement(By.linkText("Menu 1")).click();
  WebElement item3 = driver.findElement(By.linkText("&lt;Item 3&gt;"));
  Actions action = new  Actions(driver);
  action.moveToElement(item3).pause(Duration.ofSeconds(1)).build().perform();
  action.moveToElement(driver.findElement(By.linkText("&lt;sub Item2&gt;")))
  .click().build().perform();`
  </code></pre>
  
  <p>Please help me with the solution to handle this situation.</p>