aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/TestMech.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r--perllib/FixMyStreet/TestMech.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm
index b8605f56c..bb4a48d65 100644
--- a/perllib/FixMyStreet/TestMech.pm
+++ b/perllib/FixMyStreet/TestMech.pm
@@ -431,7 +431,7 @@ sub extract_problem_title {
$banner = $mech->extract_problem_banner;
-Returns the problem title from a problem report page. Returns a hashref with id and text.
+Returns the problem title from a problem report page. Returns a hashref with class and text.
=cut
@@ -439,8 +439,8 @@ sub extract_problem_banner {
my $mech = shift;
my $result = scraper {
- process 'div#side > p.banner', id => '@id', text => 'TEXT';
- process 'div.banner > p', id => '@id', text => 'TEXT';
+ process 'div.banner', class => '@class';
+ process 'div.banner > p', text => 'TEXT';
}
->scrape( $mech->response );