title: Extract Menu Link
body: <p>I want to get all menu page link , in order to fetch product from each menu page , 
  Here is HTML code for Menu </p>
  
  <pre><code>&lt;nav id="cavas_menu" class="navbar navbar-default" role="navigation"&gt;
          &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
          &lt;div class="navbar-header"&gt;
              &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"&gt;
                  &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/button&gt;
          &lt;/div&gt;
          &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
          &lt;div id="leo-top-menu" class="collapse navbar-collapse navbar-ex1-collapse"&gt;
              &lt;ul class="nav navbar-nav megamenu"&gt;&lt;li class=" parent dropdown aligned-left "&gt;
                      &lt;a href="#" class="dropdown-toggle has-category" data-toggle="dropdown" target="_self"&gt;&lt;span class="menu-title"&gt;Categories&lt;/span&gt;&lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;&lt;div class="dropdown-sub dropdown-menu" style="width:400px"&gt;&lt;div class="dropdown-menu-inner"&gt;&lt;div class="row"&gt;&lt;div class="mega-col col-sm-6"&gt; &lt;div class="mega-col-inner "&gt;&lt;div class="leo-widget"&gt;&lt;div class="widget-subcategories"&gt;
          &lt;div class="widget-inner"&gt;
          &lt;div class="menu-title"&gt;Home&lt;/div&gt;
          &lt;ul&gt;
                              &lt;li class="clearfix"&gt;
                      &lt;a href="https://www.vapors.com/14-e-juices" title="E-Juices" class="img"&gt;
                          E-Juices 
                      &lt;/a&gt;
                  &lt;/li&gt;
                              &lt;li class="clearfix"&gt;
                      &lt;a href="https://www.vapors.com/15-mods" title="Mods" class="img"&gt;
                          Mods 
                      &lt;/a&gt;
                  &lt;/li&gt;
                              &lt;li class="clearfix"&gt;
                      &lt;a href="https://www.vapors.com/17-accessories" title="Accessories" class="img"&gt;
                          Accessories 
                      &lt;/a&gt;
                  &lt;/li&gt;
                              &lt;li class="clearfix"&gt;
                      &lt;a href="https://www.vapors.com/19-starter-kits" title="Starter Kits" class="img"&gt;
                          Starter Kits 
                      &lt;/a&gt;
                  &lt;/li&gt;
                              &lt;li class="clearfix"&gt;
                      &lt;a href="https://www.vapors.com/21-ego" title="Ego" class="img"&gt;
                          Ego 
                      &lt;/a&gt;
                  &lt;/li&gt;
                              &lt;li class="clearfix"&gt;
                      &lt;a href="https://www.vapors.com/27-rda" title="RDA" class="img"&gt;
                          RDA 
                      &lt;/a&gt;
                  &lt;/li&gt;
                              &lt;li class="clearfix"&gt;
                      &lt;a href="https://www.vapors.com/28-regulated-mods" title="Regulated Mods" class="img"&gt;
                          Regulated Mods 
                      &lt;/a&gt;
                  &lt;/li&gt;
                              &lt;li class="clearfix"&gt;
                      &lt;a href="https://www.vapors.com/29-clearomizer" title="Clearomizer" class="img"&gt;
                          Clearomizer 
                      &lt;/a&gt;
                  &lt;/li&gt;
                              &lt;li class="clearfix"&gt;
                      &lt;a href="https://www.vapors.com/30-drip-tips" title="Drip Tips" class="img"&gt;
                          Drip Tips 
                      &lt;/a&gt;
                  &lt;/li&gt;
                              &lt;li class="clearfix"&gt;
                      &lt;a href="https://www.vapors.com/33-sales" title="Sales" class="img"&gt;
                          Sales 
                      &lt;/a&gt;
                  &lt;/li&gt;
  
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
   &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="mega-col col-sm-6"&gt; &lt;div class="mega-col-inner "&gt;&lt;div class="leo-widget"&gt; &lt;div class="widget-products"&gt;
          &lt;div class="menu-title"&gt;
          New Products
      &lt;/div&gt;
          &lt;div class="widget-inner"&gt;
  
                  &lt;div class="product-block"&gt;
  
  
  
  
  
  
  
  
  
  
               &lt;div class="product-container clearfix"&gt;   
                      &lt;div class="image "&gt;
                              &lt;a class="product_img_link" href="https://www.vapors.com/rda/794-plume-veil-v25-limited-ed.html" title="Plume Veil V2.5 Limited Ed." itemprop="url"&gt;
                                  &lt;img class="replace-2x img-responsive" src="https://www.vapors.com/307-home_default/plume-veil-v25-limited-ed.jpg" alt="Plume Veil V2.5 Limited Ed." title="Plume Veil V2.5 Limited Ed." itemprop="image"&gt;
                          &lt;/a&gt;
                                                              &lt;span class="new-box"&gt;
                                      &lt;span class="new-label"&gt;New&lt;/span&gt;
                                  &lt;/span&gt;
                                                  &lt;/div&gt;
                      &lt;div class="product-meta"&gt;
                              &lt;h5 itemprop="name"&gt;
                                                                  &lt;a class="product-name" href="https://www.vapors.com/rda/794-plume-veil-v25-limited-ed.html" title="Plume Veil V2.5 Limited Ed." itemprop="url"&gt;
                                      Plume Veil V2.5 Limited Ed.
                                  &lt;/a&gt;
                              &lt;/h5&gt;
                              &lt;p class="product-desc" itemprop="description"&gt;
  
                              &lt;/p&gt;    
                                                              &lt;div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer" class="content_price"&gt;
                                                                              &lt;span itemprop="price" class="price product-price"&gt;
                                              $89.99                                      &lt;/span&gt;
                                          &lt;meta itemprop="priceCurrency" content="1"&gt;
                                                                                              &lt;/div&gt;
                                                      &lt;/div&gt;
                  &lt;/div&gt;                  
  
  
  
               &lt;div class="product-container clearfix"&gt;   
                      &lt;div class="image "&gt;
                              &lt;a class="product_img_link" href="https://www.vapors.com/rda/793-plume-veil-v25.html" title="Plume Veil V2.5" itemprop="url"&gt;
                                  &lt;img class="replace-2x img-responsive" src="https://www.vapors.com/306-home_default/plume-veil-v25.jpg" alt="Plume Veil V2.5" title="Plume Veil V2.5" itemprop="image"&gt;
                          &lt;/a&gt;
                                                              &lt;span class="new-box"&gt;
                                      &lt;span class="new-label"&gt;New&lt;/span&gt;
                                  &lt;/span&gt;
                                                  &lt;/div&gt;
                      &lt;div class="product-meta"&gt;
                              &lt;h5 itemprop="name"&gt;
                                                                  &lt;a class="product-name" href="https://www.vapors.com/rda/793-plume-veil-v25.html" title="Plume Veil V2.5" itemprop="url"&gt;
                                      Plume Veil V2.5
                                  &lt;/a&gt;
                              &lt;/h5&gt;
                              &lt;p class="product-desc" itemprop="description"&gt;
                                  This all new version of the Veil is a Sub-Ohm V2.5 RDA by...
                              &lt;/p&gt;    
                                                              &lt;div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer" class="content_price"&gt;
                                                                              &lt;span itemprop="price" class="price product-price"&gt;
                                              $89.99                                      &lt;/span&gt;
                                          &lt;meta itemprop="priceCurrency" content="1"&gt;
                                                                                              &lt;/div&gt;
                                                      &lt;/div&gt;
                  &lt;/div&gt;                  
  
  
          &lt;/div&gt;
  
  
  
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="active"&gt;
                          &lt;a href="https://www.vapors.com/14-e-juices" target="_self" class="has-category"&gt;&lt;span class="menu-title"&gt;E-Juices&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=""&gt;
                          &lt;a href="https://www.vapors.com/15-mods" target="_self" class="has-category"&gt;&lt;span class="menu-title"&gt;Mods&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=""&gt;
                          &lt;a href="https://www.vapors.com/28-regulated-mods" target="_self" class="has-category"&gt;&lt;span class="menu-title"&gt;Regulated Mods&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=""&gt;
                          &lt;a href="https://www.vapors.com/27-rda" target="_self" class="has-category"&gt;&lt;span class="menu-title"&gt;RDA&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=""&gt;
                          &lt;a href="https://www.vapors.com/19-starter-kits" target="_self" class="has-category"&gt;&lt;span class="menu-title"&gt;Starter Kits&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=""&gt;
                          &lt;a href="https://www.vapors.com/29-clearomizer" target="_self" class="has-category"&gt;&lt;span class="menu-title"&gt;Clearomizer&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=""&gt;
                          &lt;a href="https://www.vapors.com/30-drip-tips" target="_self" class="has-category"&gt;&lt;span class="menu-title"&gt;Drip tips&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=""&gt;
                          &lt;a href="https://www.vapors.com/21-ego" target="_self" class="has-category"&gt;&lt;span class="menu-title"&gt;Ego&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=""&gt;
                          &lt;a href="https://www.vapors.com/17-accessories" target="_self" class="has-category"&gt;&lt;span class="menu-title"&gt;Accessories&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="sales"&gt;
                          &lt;a href="https://www.vapors.com/33-sales" target="_self" class="has-category"&gt;&lt;span class="menu-title"&gt;Sales&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
          &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>I need to get all href link and click on each link to perform some action .</p>
  
  <p>here is code which i tried but getting output as null :</p>
  
  <pre><code> List&lt;WebElement&gt; cat=driver.findElements(By.xpath("//*[@id='cavas_menu']"));
  
  
       for (WebElement catmenu : cat){
  
           System.out.println(catmenu.getAttribute("href"));
  
  
       }
      }
  </code></pre>