title: Missing or invalid type argument for pointer action - Selenium
body: <p>I am getting below mentioned error message while run program.</p>
  
  <blockquote>
    <p>Error: Missing or invalid type argument for pointer action.</p>
  </blockquote>
  
  <p>I am trying to click on sub menu which will display after mouse hover on main menu.</p>
  
  <p>Code below:</p>
  
  <pre><code>public class ActionKeywords {
      WebDriver driver = new FirefoxDriver();
  
      @Test
      public void openBrowser(){
          driver.get("https://www.levissima.it/");
          driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
          driver.manage().window().maximize();
      }
      @Test
      public void verify_Menus(){
  
          WebElement mainMenu = driver.findElement(By.xpath("//ul[@id='menu-main']/li/a"));
  
          WebElement subMenu = driver.findElement(By.xpath("//a[contains(text(),'Impegno Per La Natura')]"));
          Actions action = new Actions (driver);
          action.moveToElement(mainMenu).perform();
          action.click(subMenu).perform();
      }
  }
  </code></pre>
  
  <p>Please assist!</p>