WWW::Mechanize::Plugin::Snapshot is a snapshot the Mech object's state.
# Create timestamped snapshot
$snapshot_file_name = $mech->snapshot("Accessing problematic.org");
# Create user-named snapshot
$foo_file = $mech->snapshot("Special file", "foo");
# Preset the comment:
$mech->snapshot_comment("Failed during test set 1");
# Resulting file uses the comment preset before the
# snapshot call.
$standard_name = $mech->snapshot();
# Use a different filename. keeping the preset comment:
$foo_file = $mech->snapshot(undef, "foo");
WWW::Mechanize::Plugin::Snapshot is a Web debugging plugin. It allows you to selectively dump the results of an HTTP request to files that can be displayed in a browser, showing not only the web page at the time of the request, but also
� Arbitrary comment information from the user (as text).
The URL of the request.
� A formatted copy of the HTTP request
� A formatted HTTP response (less the actual content and the request)
� The current contents of the cookie jar
� The actual web page content
The output is displayed in a frame, with the debug information on the left and the actual page HTML as fetched at the time of the snapshot on the right.