title: How can I click <a> wiyh scapy-splash
body: <p>url:http(s)://bbs.ngacn.cc/nuke.php?__lib=login&amp;__act=login_ui</p>
  
  <pre><code>&lt;a id="showcaptchad" href="javascript:void(0)" onclick="showCaptchad(this)"&gt;xxxxxxxx&lt;/a&gt; 
  
  
  script = ''' 
   function main(splash)
   splash.images_enabled = false
   splash.resource_timeout = 100.0
   splash:autoload('http://code.jquery.com/jquery-2.1.3.min.js')
   assert(splash:go(splash.args.url))
   splash:wait(1)
   splash:runjs("$('#showcaptchad').click()")
   splash:wait(0.5)
   return splash:html()
  end
  '''
  </code></pre>
  
  <p>it never works.
  but</p>
  
  <pre><code>document.getElementById("showcaptchad").click()
  </code></pre>
  
  <p>worked well</p>
  
  <p>question:</p>
  
  <p>1.Whether jQuery does not support  click() .</p>
  
  <p>2.how can I click the link like </p>
  
  <pre><code>&lt;a tabindex="-1" href="#J_Reviews" rel="nofollow" hidefocus="true" data-index="1"&gt;xxxxxxx&lt;em class="J_ReviewsCount" style="display: inline;"&gt;62791&lt;/em&gt;&lt;/a&gt;
  </code></pre>
  
  <p>or </p>
  
  <pre><code>&lt;a href="?spm=a220o.1000855.0.0.JZj6pP&amp;amp;page=2" data-spm-anchor-id="a220o.1000855.0.0"&gt;2&lt;/a&gt;
  </code></pre>
  
  <p>they don't contain id='xxx' or name='xxx' .</p>
  
  <p>I can't use 'getElementById()' or 'getElementsByName()'.</p>
  
  <p>what should I do?</p>
  
  <p>I just want to click once</p>
  
  <p>why so hard (╯°口°)╯(┴—┴</p>
  
  <h1>===============================================</h1>
  
  <p>After 100000000 times</p>
  
  <pre><code>splash:runjs('document.querySelector("#showcaptchad").click()')
  </code></pre>
  
  <p>this worked</p>
  
  <p>it looks like not jQuery method</p>
  
  <p>===============================================
  I was shown how to do this just now</p>
  
  <p>To use getElementById, getElementByName, getElementsByTagName() and some simple </p>
  
  <p>function can almost do everything</p>
  
  <p>jQuery looks like not necessary</p>