title: Clicking on element after mouse move in Java Selenium
body: <pre><code>&lt;a class="menu-item js-add-to-basket pizzaAddDefault js-change-ingredients js-add-pizza-to-basket" id="ph-add-to-basket-61504822" data-id="61504822" upsell-id="" href="/amrest-pizzahut/products#category/pizza" style="height: auto;"&gt;
              &lt;div class="ph-order-on-preview"&gt;
                  &lt;button class="btn btn--primary"&gt;Zamów online&lt;/button&gt;
              &lt;/div&gt;
              &lt;div id="ph-add-to-basket-61504822" class="box-counter ph-product-in-basket hidden" data-id="61504822"&gt;
                  &lt;span class="ph-products-in-basket-number"&gt;0&lt;/span&gt;
              &lt;/div&gt;
              &lt;div class="menu-item__content"&gt;
                  &lt;h5&gt;
                      &lt;!-- 
                              &lt;div class="ph-menu-favorite js-favourite" sec:authorize="!isAnonymous()"&gt;
                                  &lt;img th:src="@{/images/favourite-unchecked.png}" class="unchecked" alt="Nie ulubiona" /&gt;
                              &lt;/div&gt;
                       --&gt;
                      VEGE DELUX
                  &lt;/h5&gt;
                  &lt;p&gt;
                      37,99 PLN
                  &lt;/p&gt;
                  &lt;p class="menu-item__description"&gt;&lt;/p&gt;
              &lt;/div&gt;
              &lt;div class="menu-item__image"&gt;
                  &lt;img src="https://ocs-pl.oktawave.com/v1/AUTH_876e5729-f8dd-45dd-908f-35d8bb716177/amrest-web-ordering/GRD4/GRD4590/Smaki%20Premium/Pizza_vege_medium_450x450.png" alt="VEGE DELUX"&gt;
              &lt;/div&gt;
          &lt;/a&gt;
  </code></pre>
  
  <p>Above there's code from my site, i need to move mouse button on this class, and next press 'zamów online' button</p>
  
  <p>I have following locators for this item:</p>
  
  <pre><code>    @FindBy (css="#ph-add-to-basket-61504822") WebElement firstpizza;
      @FindBy (css="#ph-add-to-basket-61504822 .ph-order-on-preview button") WebElement pizzabutton;
  </code></pre>
  
  <p>and functions</p>
  
  <pre><code>public void clickPizzaBasket() {
      Actions action = new Actions(driver);
      action.moveToElement(firstpizza);
      System.out.print("moved");
      pizzabutton.click();
  }
  </code></pre>
  
  <p>executing this function i get org.openqa.selenium.ElementNotVisibleException: element not visible on pizzabutton.click() line</p>
  
  <p>In which way i should access to 'zamów online' buttons?</p>
  
  <p><a href="https://i.stack.imgur.com/yWZ36.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yWZ36.png" alt="enter image description here"></a></p>