Condition Coverage

blib/lib/Selenium/Remote/Driver.pm
Criterion Covered Total %
condition 56 134 41.7


and 3 conditions

line !l l&&!r l&&r condition
335 5 12 21 $self->auto_close and defined $self->session_id
441 3 19 0 $args->{'desiredCapabilities'}{'browserName'} =~ /firefox/i and $self->has_firefox_profile
473 0 134 2 exists $args->{'desiredCapabilities'}{'browserName'} and $cap eq "extra_capabilities"
493 0 25 111 exists $args->{'desiredCapabilities'}{'browserName'} and $args->{'desiredCapabilities'}{'browserName'} eq "firefox"
25 109 2 exists $args->{'desiredCapabilities'}{'browserName'} and $args->{'desiredCapabilities'}{'browserName'} eq "firefox" and $cap eq "firefox_profile"
534 2 0 0 exists $args->{'capabilities'} and exists $args->{'capabilities'}{'alwaysMatch'}
565 0 28 0 $resp->{'cmd_status'} and $resp->{'cmd_status'} eq "NOT OK"
569 1 0 27 defined $resp->{'sessionId'} and $resp->{'sessionId'} ne ""
585 15 10 2 ref $resp->{'cmd_return'} eq "HASH" and $resp->{'cmd_return'}{'capabilities'}
594 15 11 1 ref $resp->{'cmd_return'} eq "HASH" and $resp->{'cmd_return'}{'chrome'}
604 15 5 7 ref $resp->{'cmd_return'} eq "HASH" and $resp->{'cmd_return'}{'pageLoadStrategy'}
5 7 0 ref $resp->{'cmd_return'} eq "HASH" and $resp->{'cmd_return'}{'pageLoadStrategy'} and $self->browser_name eq "MicrosoftEdge"
661 0 0 0 $self->{'is_wd3'} and not grep({$self->browser_name eq $_;} "MicrosoftEdge")
770 0 0 0 $self->{'is_wd3'} and not grep({$self->browser_name eq $_;} "MicrosoftEdge")
827 0 0 0 $type eq "page load" and $self->browser_name ne "MicrosoftEdge"
939 22 1 5 $self->has_base_url and not $url =~ m[://]
996 1 0 1 &Scalar::Util::blessed($args[$i]) and $args[$i]->isa("Selenium::Remote::WebElement")
1014 0 0 2 ref $ret and ref $ret eq "HASH"
0 0 2 ref $ret and ref $ret eq "HASH" and $self->_looks_like_element($ret)
1043 1 0 1 &Scalar::Util::blessed($args[$i]) and $args[$i]->isa("Selenium::Remote::WebElement")
1086 5 1 3 ref $ret and ref $ret eq "HASH"
1103 5 0 1 ref $ret and ref $ret eq "ARRAY"
1116 0 0 0 $params->{'full'} and $self->{'browser_name'} ne "firefox"
1274 0 0 1 defined $name and defined $value
1283 0 1 0 defined $secure && $secure
1403 0 1 3 defined $elem and defined $query
1433 0 0 2 defined $elem and defined $query
1474 78 0 0 $self->isa("Selenium::Firefox") and $using eq "name"
1577 1 0 0 $self->{'is_wd3'} and not grep({$self->browser_name eq $_;} "MicrosoftEdge")
1627 0 0 0 $self->{'is_wd3'} and not grep({$self->browser_name eq $_;} "MicrosoftEdge")
1664 0 0 0 defined $button and $button =~ /(LEFT|MIDDLE|RIGHT)/i
1667 0 0 0 defined $button and $button =~ /(0|1|2)/
1680 0 0 0 $self->{'is_wd3'} and not grep({$self->browser_name eq $_;} "MicrosoftEdge")
1696 0 0 0 $self->{'is_wd3'} and not grep({$self->browser_name eq $_;} "MicrosoftEdge")
1727 0 0 0 $self->{'is_wd3'} and not grep({$self->browser_name eq $_;} "MicrosoftEdge")

or 2 conditions

line l !l condition
423 22 0 $extra_capabilities ||= {}
425 22 0 $self->version // ""
546 0 0 $args->{'desiredCapabilities'}{'goog:chromeOptions'}{'args'} //= []
778 0 0 $params{'xoffset'} // 0
0 0 $params{'yoffset'} // 0
869 0 1 shift() // 1000
1114 0 0 $params //= {"full", 0}

or 3 conditions

line l !l&&r !l&&!r condition
533 2 0 27 $self->isa("Selenium::Firefox") or $self->isa("Selenium::Chrome")
2 0 27 $self->isa("Selenium::Firefox") or $self->isa("Selenium::Chrome") or $self->isa("Selenium::Edge")
1075 5 0 0 exists $maybe_element->{'ELEMENT'} || exists $maybe_element->{'element-6066-11e4-a52e-4f735466cecf'}
1192 0 0 0 defined $x or defined $y
1215 0 0 0 defined $height or defined $width