title: How to emulate the click on a website's button with AppleScript?
body: <p>I need to click a specific button on a webpage. The source code of the page related to the button is as follows:</p>
  <pre><code>&lt;a href=&quot;#none&quot; onclick=&quot;openViewer('66668', 9);&quot;&gt;Animati Workstation&lt;/a&gt;
  </code></pre>
  <p>Using AppleScript, is there any way I can send this function (emulate the click) without actually clicking on it?</p>
  <p>I'm using a MacBook and I intend to create a gesture with the BetterTools App to perform the action: &quot;Run Applescript&quot;</p>
  <pre><code>tell application &quot;Google Chrome&quot;
      tell active tab of front window
          execute javascript &quot;openViewer('66668', 9);&quot;
      end tell
  end tell
  </code></pre>
  <p>It's not working. I have managed to open another tab, but couldn't make it click buttons.</p>