title: Selenium test passes on hovering drop-down menu item click but does nothing
body: <p>The website is <a href="https://cloudwise.nl/" rel="nofollow noreferrer">https://cloudwise.nl/</a> I'm trying to click on Dit is Cloudwise &gt; Alle Cludwisers with Selenium using Java. It's a hoverable drop-down menu so I saw people handle this situation with the help of waiting until the presence of Element Located functions. so that's my code piece:</p>
  <pre><code>Actions action = new Actions(driver);
          WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(5));
          WebElement menu = wait.until(ExpectedConditions.presenceOfElementLocated((By.xpath(&quot;//a[@class='sf-with-ul'][contains(text(),'Dit is Cloudwise')]&quot;))));
          WebElement submenu = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(&quot;//li[@id='menu-item-6380']//a[contains(text(),'Alle Cloudwisers')]&quot;)));
          action.moveToElement(menu).moveToElement(driver.findElement(By.xpath(&quot;//li[@id='menu-item-6380']//a[contains(text(),'Alle Cloudwisers')]&quot;))).click().build().perform();
  </code></pre>
  <p>But the test still passes and it does not click. What could I be doing wrong?</p>