line |
!l |
l&&!r |
l&&r |
condition |
146
|
1 |
0 |
0 |
$^O =~ /mswin/i && $options->{'launch_exe'} =~ /\s/ |
563
|
0 |
0 |
0 |
ref $phantom_res eq '' and $phantom_res eq '1' |
635
|
0 |
0 |
0 |
0 + $res->headers->header_field_names and [$res->headers->header_field_names]->[0] ne 'x-www-mechanize-phantomjs-fake-success' || $self->uri ne 'about:blank' |
829
|
0 |
0 |
0 |
$self->status and not $self->status =~ /^2/ |
|
0 |
0 |
0 |
$self->status and not $self->status =~ /^2/ and $self->status != 0 |
1067
|
0 |
0 |
0 |
not $ct and my $r = $self->response |
1091
|
0 |
0 |
0 |
defined $self->ct && $self->ct eq 'text/html' |
1291
|
0 |
0 |
0 |
$single and exists $opts{'n'} |
1516
|
0 |
0 |
0 |
'html' ne $tag and '' ne $tag |
1657
|
0 |
0 |
0 |
defined wantarray and not wantarray |
1734
|
0 |
0 |
0 |
$options{'frames'} and not $options{'node'} |
1754
|
0 |
0 |
0 |
not $zero_allowed and @res == 0 |
1757
|
0 |
0 |
0 |
not $two_allowed and @res > 1 |
1852
|
0 |
0 |
0 |
ref $name and &blessed($name) |
|
0 |
0 |
0 |
ref $name and &blessed($name) and $name->can('click') |
2545
|
0 |
0 |
0 |
not ref $spec || $spec =~ /\D/ and $spec == 1 |
2646
|
0 |
0 |
0 |
&blessed($e) and $e->isa('Selenium::Remote::WebElement') |
2953
|
0 |
0 |
0 |
@{$_->{'trace'};} && $_->{'trace'}[-1]{'function'} |
line |
l |
!l |
condition |
119
|
0 |
1 |
$options->{'log'} ||= 'OFF' |
121
|
0 |
1 |
$ENV{'PHANTOMJS_EXE'} || 'phantomjs' |
125
|
0 |
1 |
$options->{'launch_arg'} ||= [] |
126
|
0 |
1 |
$options->{'phantomjs_arg'} ||= [] |
203
|
0 |
0 |
$options{'wait'} || 20 |
466
|
0 |
0 |
$cmds->{'phantomExecute'} ||= {'method', 'POST', 'url', 'session/:sessionId/phantom/execute'} |
963
|
0 |
0 |
$options{'format'} ||= 'html' |
964
|
0 |
0 |
delete $options{'format'} || 'html' |
1294
|
0 |
0 |
delete $opts{'n'} || 1 |
1395
|
0 |
0 |
$opts{'n'} || '' |
1635
|
0 |
0 |
ref $query || '' |
1677
|
0 |
0 |
$doc->{'__path'} ||= [] |
1759
|
0 |
0 |
$_->get_text || '' |
1786
|
0 |
0 |
ref $query || '' |
1863
|
0 |
0 |
$options{'name'} || '' |
2055
|
0 |
0 |
shift() || \*STDOUT |
2058
|
0 |
0 |
$form->get_attribute('name') || '' |
2064
|
0 |
0 |
$f->get_attribute('type') || '' |
2068
|
0 |
0 |
$f->get_attribute('name') || '' |
2465
|
0 |
0 |
delete $options{'fields'} || {} |
2478
|
0 |
0 |
$options{'x'} || 0 |
|
0 |
0 |
$options{'y'} || 0 |
2631
|
0 |
0 |
$self->{'driver'}{'commands'}{'switchToParentFrame'} ||= {'method', 'POST', 'url', 'session/:sessionId/frame/parent'} |
2687
|
0 |
0 |
$rect ||= {} |
line |
l |
!l&&r |
!l&&!r |
condition |
121
|
0 |
1 |
0 |
$options->{'launch_exe'} ||= $ENV{'PHANTOMJS_EXE'} || 'phantomjs' |
124
|
0 |
1 |
0 |
$options->{'launch_ghostdir'} ||= $ghostdir_default |
235
|
0 |
0 |
0 |
$options{'driver'} ||= 'Selenium::Remote::Driver'->new('port', $options{'port'}, 'remote_server_addr', $localhost, 'auto_close', 0, 'error_handler', sub {
local(@WWW::Mechanize::PhantomJS::CARP_NOT) = (@WWW::Mechanize::PhantomJS::CARP_NOT, ref $_[0], 'Try::Tiny');
croak($_[1]);
}
) |
283
|
0 |
0 |
0 |
$self->{'phantomjs_version'} ||= do {
my $version = `$self->{'launch_exe'} --version`;
$version =~ s/\s+//g;
$version
} |
300
|
0 |
0 |
0 |
$self->{'ghostdriver_version'} ||= do {
$self->eval_in_phantomjs('return ghostdriver.version')
} |
635
|
0 |
0 |
0 |
[$res->headers->header_field_names]->[0] ne 'x-www-mechanize-phantomjs-fake-success' || $self->uri ne 'about:blank' |
831
|
0 |
0 |
0 |
$self->response('headers', 0)->message || sprintf('Got status code %d', $self->status) |
1046
|
0 |
0 |
0 |
$base ||= $self->uri |
1290
|
0 |
0 |
0 |
delete $opts{'one'} || $single |
1311
|
0 |
0 |
0 |
$lefthand{$lvalue} || '@' . $lvalue |
1647
|
0 |
0 |
0 |
$single || $first || $maybe || $any |
1648
|
0 |
0 |
0 |
$options{'user_info'} ||= join('|', @$query) |
1651
|
0 |
0 |
0 |
$single || $first |
1652
|
0 |
0 |
0 |
$single || $maybe |
1656
|
0 |
0 |
0 |
exists $options{'all'} or $return_first_element |
1674
|
0 |
0 |
0 |
$options{'document'} || $self->document |
1790
|
0 |
0 |
0 |
$options{'user_info'} ||= 'id ' . join(' or ', map({"'${_}'";} @$query)) . ' found' |
1904
|
0 |
0 |
0 |
$rename{$meth} || $meth |
1984
|
0 |
0 |
0 |
$node ||= $self->xpath($xpath, 'node', $self->current_form, 'single', 1, 'user_message', $user_message) |
2316
|
0 |
0 |
0 |
delete $options{'pre'} || $self->{'pre_value'} |
2317
|
0 |
0 |
0 |
delete $options{'post'} || $self->{'post_value'} |
2391
|
0 |
0 |
0 |
$dom_form ||= $self->current_form |
2541
|
0 |
0 |
0 |
$spec ||= $self->{'frames'} |
2543
|
0 |
0 |
0 |
$document ||= $self->document |
2545
|
0 |
0 |
0 |
ref $spec || $spec =~ /\D/ |
2648
|
0 |
0 |
0 |
$e->{'WINDOW'} || $e->{'ELEMENT'} |