Bug 25811: (follow-up) Debug - Paste the source of the page

Wide character in syswrite at /usr/share/perl5/File/Slurp.pm line 506.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-07-31 12:55:40 +02:00
parent 09ed4c0dd7
commit 67f6ceecd3
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ sub capture {
my ( $class, $driver ) = @_;
$driver->get_page_source;
write_file('/tmp/page_source_from_selenium', $driver->get_page_source);
write_file('/tmp/page_source_from_selenium', {binmode => ':utf8'}, $driver->get_page_source );
my $gdf3_url = qx(cat /tmp/page_source_from_selenium | curl --data-binary \@- https://gdf3.com);
print STDERR "\nPage source pasted at $gdf3_url";