title: python selenium click at current position
body: <p>I have a drop down menu that i need to click to activate. Elements of dropdown are not exposed in the html and therefor cannot be found to click on.  So once dropdown is activated I key up to the option I want and now I just need a single mouse click at that position but I can't figure out how to do it.</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.webdriver.common.action_chains import ActionChains as AC
  from selenium.webdriver.common.keys import Keys
  
  nextButton = browser.find_element_by_xpath('//*[@id=&quot;rendererColorClassifyMethodDropdown&quot;]')
  nextButton.click()
  
  nextButton.send_keys(Keys.ARROW_UP)
  nextButton.send_keys(Keys.ARROW_UP)
  nextButton.send_keys(Keys.ARROW_UP)
  nextButton.send_keys(Keys.ARROW_UP)
  nextButton.send_keys(Keys.ARROW_UP)
  AC.click()
  </code></pre>
  <p>This results in this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
  TypeError: click() missing 1 required positional argument: 'self'
  </code></pre>
  <p>the scroll up is working as I can see monitoring the python commands but I can't click the option once I'm there. Using <code>nextButton.click()</code> just resets the dropdown.</p>
  <p>Here is the html that when clicked invokes the dropdown:</p>
  <pre><code>&lt;input class=&quot;dijitReset dijitInputInner&quot; type=&quot;text&quot; autocomplete=&quot;off&quot; data-dojo-attach-point=&quot;textbox,focusNode&quot; role=&quot;textbox&quot; aria-autocomplete=&quot;both&quot; aria-required=&quot;true&quot; tabindex=&quot;0&quot; id=&quot;rendererColorClassifyMethodDropdown&quot; value=&quot;&quot; aria-invalid=&quot;false&quot; readonly=&quot;&quot; style=&quot;cursor: pointer;&quot;&gt;
  </code></pre>
  <p>The tag immediately following it is:</p>
  <pre><code>&lt;input type=&quot;hidden&quot; value=&quot;Natural Breaks&quot;&gt;
  </code></pre>
  <p>When i scroll with arrow keys the value of the second tag changes to whatever the scrolled value currently is bu there is no way to find the html element of the clickable value in the actual dropdown display.</p>
  <p>Here is a pic:
  <a href="https://i.stack.imgur.com/elpXU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/elpXU.jpg" alt="enter image description here" /></a></p>