blib/lib/Test/Mojo/Role/Selenium.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 19 | 57 | 33.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
74 | 0 | 0 | 0 | $active && $el |
120 | 0 | 0 | 0 | $el && $el->is_displayed |
127 | 0 | 0 | 0 | $el && $el->is_hidden |
208 | 0 | 0 | 0 | $err and $err->{'message'} |
269 | 4 | 1 | 2 | $ENV{'TEST_SELENIUM'} and eval { do { $self->driver } } |
320 | 0 | 0 | 0 | $e && @checks == grep({$e->$_;} @checks) |
343 | 20 | 0 | 2 | $@ and $args->{'debug'} || 0 |
line | l | !l | condition |
---|---|---|---|
12 | 0 | 8 | $ENV{'MOJO_SELENIUM_DEBUG'} || 0 |
96 | 0 | 0 | $@ || 'unable to click' |
232 | 0 | 0 | $selector ||= 'active element' |
269 | 1 | 4 | $@ || 'TEST_SELENIUM=1 or TEST_SELENIUM=http://...' |
332 | 0 | 1 | $ENV{'MOJO_SELENIUM_WAIT_TIMEOUT'} || 60 |
333 | 0 | 1 | $ENV{'MOJO_SELENIUM_WAIT_INTERVAL'} || 0.5 |
343 | 2 | 0 | $args->{'debug'} || 0 |
412 | 0 | 8 | $ENV{'MOJO_SELENIUM_DEBUG'} || 0 |
416 | 0 | 0 | $req->method || 'get' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
271 | 0 | 1 | 0 | $ENV{'MOJO_SELENIUM_BASE_URL'} ||= $ENV{'TEST_SELENIUM'} |
311 | 0 | 0 | 0 | $desc ||= "waited for element $arg" |
332 | 3 | 1 | 0 | $args->{'timeout'} ||= $ENV{'MOJO_SELENIUM_WAIT_TIMEOUT'} || 60 |
333 | 3 | 1 | 0 | $args->{'interval'} ||= $ENV{'MOJO_SELENIUM_WAIT_INTERVAL'} || 0.5 |
354 | 0 | 4 | 0 | $args->{'desc'} || "waited for @{[time - $t0];}s" |
365 | 7 | 0 | 0 | shift() || shift() |