Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 2814
Status: rejected
Priority: 0/
Queue: WWW-Mechanize

Owner: Nobody in particular
Requestors: MARKSTOS [...]
Cc: corion [...]

Bug Information
Severity: Wishlist
Broken in: 0.45
Fixed in: (no value)

Subject: wish: "follow along" method for WWW::Mechanize
CC: corion [...]
Download (untitled) / with headers
text/plain 1.1k
Hello, Here's a wish for WWW::Mechanize that I may eventually get to working on myself. Inspired by the ability of HTML::Display and WWW::Mechanize::Shell to allow a user to follow along on a client, I would like a similiar feature for WWW::Mechanize targeted at running on a web server, when HTML::Display is not of use. Here's how I think it could work: $agent->follow_along( dir => '/output/dir', level => 1, ); (or maybe these should be options to new()? ) Each time a new page is visited, $agent->content is written to a new file in the output directory, creating files like 1.html 2.html, etc. The pages could somehow all be modified to add forward and back navigation to the pages. There would be an option such as "level" to indicate that in addition to creating pages each time a new page is visited, a page should also be written out after a form is filled out, but before it is submitted, to show the final form values used. 'level' probably isn't the best name for this. There would be some other details to work out, such as policies on cleaning up these files, and overwriting existing files in the same directory if they exist.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to