title: Can we Pass the Values using sendkeys in selenium to select a item from a Bootstrap drop down menu?
body: <p>I have a requirement where i have to pass the values for a bootstrap drop down menu using selenium instead of selecting. How can i achieve this? Is there anyway that we could do it using sendkeys in selenium?
  Below is the code here i have to pass the values CSS,HTML,Java script instead of selecting them while automating.</p>
  
  <pre><code>&lt;div class="container"&gt;
    &lt;h2&gt;Dropdown Example&lt;/h2&gt;
    &lt;p&gt;The data-toggle="dropdown" attribute is used to open the dropdown menu.&lt;/p&gt;
    &lt;div class="dropdown"&gt;
      &lt;button class="btn btn-primary dropdown-toggle" id="menu1" type="button" data-toggle="dropdown"&gt;Dropdown Example
      &lt;span class="caret"&gt;&lt;/span&gt;&lt;/button&gt;
      &lt;ul class="dropdown-menu" role="menu" aria-labelledby="menu1"&gt;
        &lt;li role="presentation"&gt;&lt;a role="menuitem" tabindex="-1" href="#"&gt;HTML&lt;/a&gt;&lt;/li&gt;
        &lt;li role="presentation"&gt;&lt;a role="menuitem" tabindex="-1" href="#"&gt;CSS&lt;/a&gt;&lt;/li&gt;
        &lt;li role="presentation"&gt;&lt;a role="menuitem" tabindex="-1" href="#"&gt;JavaScript&lt;/a&gt;&lt;/li&gt;
        &lt;li role="presentation" class="divider"&gt;&lt;/li&gt;
        &lt;li role="presentation"&gt;&lt;a role="menuitem" tabindex="-1" href="#"&gt;About Us&lt;/a&gt;&lt;/li&gt;    
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>