From: tamouse mailing lists Date: 2013-05-07T21:30:23+09:00 Subject: Re: Downloading a CSV using URI - mechanize On Mon, May 6, 2013 at 11:56 PM, Rochit Sen wrote: > tamouse mailing lists wrote in post #1108020: >> On Mon, May 6, 2013 at 1:17 PM, Rochit Sen wrote: >>> Got an issue. I am downloading a csv in a script written in Mechanize. I >>> am setting some parameters on the webpage and then submit my form. This >>> directs me to another page where i have the following href link (got it >>> through firebug): >> >> Show us the code. The two items you show in the attachment don't quite >> match. > > Hi Tamouse and Joel > > I have attached the full script for your reference. > > Thanks > Nothing pops out at me from a short inspection. What I would suggest is loading up the ruby debugger and stepping through it, inspecting your page and fragment values to see if you have indeed got what you think you should get. If the page you're hitting on does any javascript to put in page content that is necessary to the execution of the function you want, mechanize won't handle that.