-
-
Save johnl79/9ebf22efa9f439026f1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Browser = require("zombie"); | |
var assert = require("assert"); | |
var async = require("async"); | |
var _ = require("underscore"); | |
var base_url = "http://www.in.gov/apps/dlgftax/Assessment/AssessmentSearch.aspx"; | |
var search_button_css = "html body form#form1 div table tbody tr td input#txtStreet" | |
var letter = "a" | |
console.error("Search: " + letter); | |
Browser.visit(base_url, { debug: true }, function(e, browser, status) { | |
console.log("Visited"); | |
console.log(e) | |
browser.fill(search_button_css, letter).pressButton("Search", function() { | |
console.log("Pressed the button"); | |
browser.evaluate("var theForm = document.forms[0]; theForm.__EVENTTARGET = 'btnDownLoad'; theForm.__EVENTARGUMENT = ''; theForm.submit()"); | |
browser.wait(function() { | |
console.log("Wait returned"); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment