Clicked page is not returned by click_by_xpath

Subscribe to Clicked page is not returned by click_by_xpath 2 posts, 1 voice

 
Avatar aniruddh 4 posts

Hi,

I was just trying to do stuff with FireScrubyt, and I ran into a problem. Following is the program:

require ‘rubygems’

require ‘scrubyt’

data = Scrubyt::Extractor.define :agent => :firefox do

fetch "http://www.wamu.com/store_locator/default.asp"
fill_textfield "_ctl0:PageBody:_ctl0:txtZipCode", "02199"
click_by_xpath "/html/body/div[@id='BodyContainer1']/div/form[@id='aspnetForm']/div[@id='Formfooter1']/div/div[@id='formnavigationright']/input"
rec "/"

end

puts data.to_xml

When I run this program, the code of the fetched page is returned and the clicked one is not. However, it clearly clicks on the firefox. What I want is the result page after submitting the query.

Please tell me what’s wrong with my approach.

Thanks in advance.

 
Avatar aniruddh 4 posts

Hi, I really need help with this issue. I have a lot of examples that are behaving in the same way. Please reply.

Thanks.