I am really struggling finding the problem here.
Posting the source of the page may help.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
use Modern::Perl;
use Carp qw( croak );
use JSON qw( from_json );
+use File::Slurp qw( write_file );
use C4::Context;
sub capture {
my ( $class, $driver ) = @_;
+ $driver->get_page_source;
+ write_file('/tmp/page_source_from_selenium', $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";
+
my $lutim_server = q|https://pic.infini.fr/|; # Thanks Infini!
$driver->capture_screenshot('selenium_failure.png');
my $from_json = from_json qx{curl -s -F "format=json" -F "file=\@selenium_failure.png" -F "delete-day=1" $lutim_server};