Skip to content

Commit

Permalink
Merge e90f1c9 into 8b83cf1
Browse files Browse the repository at this point in the history
  • Loading branch information
bmagic007 committed Oct 30, 2019
2 parents 8b83cf1 + e90f1c9 commit 4113a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Selenium/Remote/Driver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2181,7 +2181,7 @@ sub screenshot {
my ($self, $params) = @_;
$params //= { full => 0 };

croak "Full page screenshot only supported on geckodriver" if $params->{full} && ( $self->{browser} ne 'firefox' );
croak "Full page screenshot only supported on geckodriver" if $params->{full} && ( $self->{browser_name} ne 'firefox' );

my $res = { 'command' => $params->{'full'} == 1 ? 'mozScreenshotFull' : 'screenshot' };
return $self->_execute_command($res);
Expand Down

0 comments on commit 4113a8c

Please sign in to comment.