title: How to click on angular dropdown menu in Selenium
body: <p>I am trying to use python selenium to automate some report generating on a website, however I am struggling to identify the element I need to click on the page due to the javascript. In firefox there is a DOM Event icon when I inspect the element. I have tried alot of variations including xpath etc but no luck.</p>
  
  <pre><code>&lt;account-groups ng-if="EventsList.ToggleService.accountGroup();"&gt;
  &lt;button class="btn-default" ng-disabled="AccountGroupsCtrl.isDisabled()" ng-click="AccountGroupsCtrl.toggleFlyout()"&gt;
  &lt;/button&gt;
  &lt;/account-groups&gt;
  </code></pre>
  
  <p><strong>EDIT</strong> For anyone viewing this the issue was because I had not switched frames using driver.switch_to.frame('frame_name'). Once this step is carried out the rest of the solutions below worked in identifying the elements. Thanks</p>