def click_link_with_id(link_id, opts = {})
      if opts && opts[:index]
        wait_before_and_after { link(:id => link_id, :index => opts[:index]).click }
      else
        wait_before_and_after { link(:id, link_id).click }
      end 
    end
def click_link_with_id(link_id, opts = {})
      if opts && opts[:index]
        wait_before_and_after { link(:id => link_id, :index => opts[:index]).click }
      else
        wait_before_and_after { link(:id, link_id).click }
      end 
    end
links