title: Using selenium Python to automate to click the elements
body: <p>I am using Selenium with Python. I want to automate to click the one of menu in the dropdown menu written as below. Let's say <code>&quot;openExportDialog()&quot;</code>  xpath is <code>//*[@id=&quot;globalMenuItems&quot;]/li[1]/a</code></p>
  <p>Could anyone please shed some light?</p>
  <pre><code>&lt;div id=&quot;nmapGlobalMenu&quot; class=&quot;col-md-12 disable-user-select dropdown pr-0 show&quot;&gt;
  &lt;button class=&quot;imgicon n-ui-icon n-ui-ic-operation myBasic_icon imgicon&quot; data-toggle=&quot;dropdown&quot; aria-haspopup=&quot;true&quot; aria-expanded=&quot;true&quot;&gt;&lt;/button&gt;&lt;div id=&quot;globalMenuItems&quot; class=&quot;dropdown-menu dropdown-menu-right show&quot; x-placement=&quot;bottom-end&quot; style=&quot;position: absolute; transform: translate3d(803px, 33px, 0px); top: 0px; left: 0px; will-change: transform;&quot;&gt;
  &lt;/li&gt;&lt;li class=&quot;&quot;&gt;&lt;a class=&quot;dropdown-item&quot; onclick=&quot;openImportDialog()&quot;&gt;&lt;span class=&quot;vakata-contextmenu&quot;&gt; Import Node&lt;/span&gt;&lt;/a&gt;
  &lt;/li&gt;&lt;li class=&quot;&quot;&gt;&lt;a class=&quot;dropdown-item&quot; onclick=&quot;openExportDialog()&quot;&gt;&lt;span class=&quot;vakata-contextmenu&quot;&gt; Export Node&lt;/span&gt;&lt;/a&gt;
      &lt;/li&gt;&lt;li class=&quot;&quot;&gt;&lt;a class=&quot;dropdown-item&quot; onclick=&quot;discoverNetwork()&quot;&gt;&lt;span class=&quot;vakata-contextmenu&quot;&gt;Discover Network&lt;/span&gt;&lt;/a&gt;
      &lt;/li&gt;&lt;li class=&quot;&quot;&gt;&lt;a class=&quot;dropdown-item&quot; onclick=&quot;openEmailSettingsView()&quot;&gt;&lt;span class=&quot;vakata-contextmenu&quot;&gt; Email Notification Settings&lt;/span&gt;&lt;/a&gt;
      &lt;/li&gt;&lt;li class=&quot;&quot;&gt;&lt;a class=&quot;dropdown-item&quot; onclick=&quot;ICMPsettingsView()&quot;&gt;&lt;span class=&quot;vakata-contextmenu&quot;&gt; ICMP Health Check Settings&lt;/span&gt;&lt;/a&gt;
      &lt;/li&gt;&lt;li class=&quot;&quot;&gt;&lt;a class=&quot;dropdown-item&quot; onclick=&quot;customTypeManagement()&quot;&gt;&lt;span class=&quot;vakata-contextmenu&quot;&gt; Node Type Management&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>I hope the question is clear.</p>
  <p>Thank you</p>