Pārlūkot izejas kodu

Idox: searchCriteria.caseType and searchCriteria.developmentType are two separate things

We need to test a group of Idox sites to see how these parameters are used in practice.
tags/v0.4.5
Adrian Short pirms 6 gadiem
vecāks
revīzija
a342ff53bd
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. +3
    -2
      lib/uk_planning_scraper/idox.rb

+ 3
- 2
lib/uk_planning_scraper/idox.rb Parādīt failu

@@ -45,8 +45,9 @@ module UKPlanningScraper
form.send(:"searchCriteria\.applicantName", params[:applicant_name]) if form.has_field? 'searchCriteria.applicantName'
form.send(:"searchCriteria\.caseType", params[:application_type]) if form.has_field? 'searchCriteria.caseType'
# Some Idox sites (eg Bolton) call this 'searchCriteria.developmentType'
form.send(:"searchCriteria\.developmentType", params[:application_type]) if form.has_field? 'searchCriteria.developmentType'
# Only some Idox sites (eg Bolton) have a 'searchCriteria.developmentType' parameter
form.send(:"searchCriteria\.developmentType", params[:development_type]) if form.has_field? 'searchCriteria.developmentType'
page = form.submit


Notiek ielāde…
Atcelt
Saglabāt