Skip to content

Commit

Permalink
Removed event argument and target.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Aug 16, 2018
1 parent 64bf7b0 commit 8f97043
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.rb
Expand Up @@ -30,8 +30,8 @@

# select the "Date Lodged" tab
search_form = search_page.forms.first
search_form['__EVENTTARGET'] = 'ctl00$MainBodyContent$mGeneralEnquirySearchControl$mTabControl$tabControlMenu'
search_form['__EVENTARGUMENT'] = '3'
# search_form['__EVENTTARGET'] = 'ctl00$MainBodyContent$mGeneralEnquirySearchControl$mTabControl$tabControlMenu'
# search_form['__EVENTARGUMENT'] = '3'
#search_form['__LASTFOCUS'] = ''
#search_form['ctl00$MainBodyContent$mGeneralEnquirySearchControl$mEnquiryListsDropDownList'] = '10'
#search_form['ctl00$MainBodyContent$mGeneralEnquirySearchControl$mTabControl$ctl04$mStreetNameTextBox'] = ''
Expand Down Expand Up @@ -70,7 +70,7 @@
p "Found another page: " + next_page_path
summary_page = agent.get "#{base_url}#{next_page_path}"
count += 1
if count > 100
if count > 10
p "Stopping paging after " + count.to_s + " pages."
break
end
Expand Down

0 comments on commit 8f97043

Please sign in to comment.