Branch Coverage

blib/lib/Test/Mojo/Role/Selenium.pm
Criterion Covered Total %
branch 19 82 23.1


line true false branch
74 0 0 $active && $el ? :
81 0 0 $path ? :
91 0 0 $selector ? :
94 0 0 if ($el)
95 0 0 unless $el->is_displayed
97 0 0 if $el->click
137 0 0 ref $method ? :
138 0 0 unless $self->tx
202 2 1 if $self->{'live_port'}
205 0 3 if ($self->tx) { }
208 0 0 if $err and $err->{'message'}
220 1 12 if $ENV{'MOJO_SELENIUM_BASE_URL'}
221 9 3 unless my $app = shift()
222 1 2 @_ ? :
223 0 3 ref $app ? :
230 0 0 $selector ? :
233 0 0 ref $keys ? :
0 0 unless ref $keys eq 'ARRAY'
236 0 0 ref $_ ? :
237 0 0 ref $_ ? :
0 0 unless defined $key
241 0 0 if ($el)
248 0 0 unless (eval { do { foreach my $key (@$keys) { '???'; $el->send_keys($key); } ; 1 } })
269 5 2 unless $ENV{'TEST_SELENIUM'} and eval { do { $self->driver } }
271 1 3 if $ENV{'TEST_SELENIUM'} =~ /^http/
279 0 0 if $el
287 0 0 if ($el)
288 0 0 if ($el->is_displayed) { }
307 0 0 if &Scalar::Util::looks_like_number($arg)
312 0 0 if $arg =~ s/:visible\b//
313 0 0 if $arg =~ s/:enabled\b//
314 0 0 if $arg =~ s/:hidden\b//
315 0 0 if $arg =~ s/:selected\b//
342 1 21 if eval { do { local $_ = $self->driver; $self->$cb($args) } }
343 2 0 if $@ and $args->{'debug'} || 0
353 0 4 if $args->{'skip'}
369 0 0 unless ref $selector
372 0 0 unless ref $selector
379 3 0 unless ($url->is_abs)
397 0 0 $el ? :
425 0 0 if ($ua->ioloop->is_running) { }