Clicking the "Show more" link on a LinkedIn group page using Ruby Mechanize
===

I have logged in to Linkedin and reached my groups page using Ruby Mechanize. I am also able to retrieve the list of questions on the page. However, I am unable to click the "Show more" link at the bottom so that I can the entire page and hence all the questions:

 

    require 'rubygems'
    require 'mechanize'
    require 'open-uri'
    
    a = Mechanize.new { |agent|
      # LinkedIn probably refreshes after login
      agent.follow_meta_refresh = true
    }
    
    a.get('http://linkedin.com/') do |home_page|
    	my_page = home_page.form_with(:name => 'login') do |form|
        form.session_key  = '********'   #put you email ID
        form.session_password = '********'  #put your password here
      end.submit
    
    mygroups_page = a.click(my_page.link_with(:text => /Groups/))
    
    #puts mygroups_page.links
    
    link_to_analyse = a.click(mygroups_page.link_with(:text => 'Semantic Web'))
    
    link_to_test = link_to_analyse.link_with(:text => 'Show more...')
    
    puts link_to_test.class
    
    # link_to_analyse.search(".user-contributed .groups a").each do |item|
    
    # 	puts item['href']
    
    #  end

    end

Although a link exists with text 'Show more...' in the page, I am somehow not able to click it.the link_to_test.class shows NilClass What is the possible problem?
