Finance-Bank-LloydsTSB
view release on metacpan or search on metacpan
lib/Finance/Bank/LloydsTSB/Account.pm view on Meta::CPAN
}
sub _navigate_to_account_overview {
my $self = shift;
if (! $self->_on_account_overview_page) {
# This is the one we want
# my @links = $self->ua->find_all_links;
# my $correct = $links[0]->text;
# GRR! gets decoded into \xa0 by HTML::TokeParser
# (which uses HTML::Entities::decode_entities)
unless ($self->ua->follow_link(text_regex =>
qr/Account[ \xa0]overview/))
{
# my $dumpfile = '/tmp/dump.html';
# $self->debug("Writing content to $dumpfile\n");
# $self->ua->save_content($dumpfile);
# my @context = $self->ua->content =~ /(.{100}overview.{100,}?$)/gims;
# die "no overview???", $self->ua->content
# unless @context;
( run in 0.388 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )