title: Scrapy follow javascript input button
body: <p>I have following input's on the page:</p>
  
  <pre><code>&lt;input name="ct99" value="" id="ct99" class="GetData" type="submit"&gt;
  &lt;input name="ct92" value="" id="ct92" class="GetData" type="submit"&gt;
  &lt;input name="ct87" value="" id="ct87" class="GetData" type="submit"&gt;
  </code></pre>
  
  <p>class GetData display some click-able icon. When click on it new page is opened. Some JavaScript taking care of it. How can I follow this?</p>
  
  <p>I'm already try code below just to see if scrapy follow inputs, but without success.</p>
  
  <pre><code>def parse(self, response):
      sel = Selector(response)
  
      links = sel.xpath("//input[@class='GetData']").extract()
      for data in links:
          yield scrapy.FormRequest.from_response(response,
              formdata={}, callback=self.after_click)
  
  
  def after_click(self, response):
      url = response.url
      print '\nURL', url
  </code></pre>