Branch Coverage

blib/lib/Selenium/Element.pm
Criterion Covered Total %
branch 0 178 0.0


line true false branch
42 0 0 if ref $class
43 0 0 unless $element
44 0 0 unless $driver == 0 or blessed $driver and blessed $driver eq 'WWW::Selenium'
66 0 0 unless ref $self
67 0 0 if ($$self{'driver'})
70 0 0 unless scalar grep({$_ eq $parts[0];} 'id', 'css')
71 0 0 $parts[0] eq 'id' ? :
85 0 0 unless ref $self
86 0 0 unless $self->is_input
87 0 0 $$self{'driver'} ? :
101 0 0 unless ref $self
113 0 0 unless ref $self
127 0 0 unless ref $self
139 0 0 unless ref $self
140 0 0 unless $self->is_select
141 0 0 $$self{'driver'} ? :
152 0 0 unless ref $self
164 0 0 unless ref $self
176 0 0 unless ref $self
188 0 0 unless ref $self
200 0 0 unless ref $self
201 0 0 if $$self{'driver'}
213 0 0 unless ref $self
214 0 0 if $$self{'driver'}
226 0 0 unless ref $self
238 0 0 unless ref $self
240 0 0 $$self{'driver'} ? :
251 0 0 unless ref $self
252 0 0 unless $self->is_select
254 0 0 if ($$self{'driver'})
279 0 0 unless ref $self
280 0 0 unless defined $option
281 0 0 unless $self->is_select
293 0 0 unless ref $self
294 0 0 unless $self->is_option
295 0 0 $$self{'driver'} ? :
313 0 0 unless ref $self
318 0 0 if ($self->is_checkbox or $self->is_radio) { }
0 0 elsif ($self->is_select) { }
0 0 elsif ($self->is_hiddeninput or $self->is_fileinput or $self->is_textinput) { }
0 0 elsif ($self->is_option) { }
319 0 0 $$self{'driver'} ? :
321 0 0 if ($self->is_multiselect) { }
322 0 0 $_->is_selected ? :
325 0 0 $$self{'driver'} ? :
328 0 0 $$self{'driver'} ? :
330 0 0 $$self{'driver'} ? :
332 0 0 $$self{'driver'} ? :
344 0 0 $$self{'driver'} ? :
355 0 0 $$self{'driver'} ? :
368 0 0 unless ref $self
369 0 0 unless $self->is_textinput
370 0 0 if ($$self{'driver'}) { }
372 0 0 unless scalar grep({$_ eq $$self{'selector'}[1];} 'id', 'css')
373 0 0 $$self{'selector'}[1] eq 'id' ? :
402 0 0 unless ref $self
403 0 0 unless defined $value
404 0 0 if defined $callback and reftype $callback ne 'CODE'
407 0 0 unless $enabled
408 0 0 unless $enabled
413 0 0 if ($self->is_checkbox or $self->is_radio) { }
0 0 elsif ($self->is_textinput) { }
0 0 elsif ($self->is_fileinput) { }
0 0 elsif ($self->is_hiddeninput) { }
0 0 elsif ($self->is_select) { }
0 0 elsif ($self->is_option) { }
414 0 0 $$self{'driver'} ? :
415 0 0 if $selected and $value or not $selected || $value
416 0 0 $$self{'driver'} ? :
420 0 0 $$self{'driver'} ? :
423 0 0 if ($$self{'driver'}) { }
431 0 0 unless $self->id
437 0 0 if reftype $value ne 'ARRAY'
438 0 0 if ($$self{'driver'}) { }
444 0 0 if (grep {$$val{'element'}->get_attribute('name') eq $_;} @$value) { }
446 0 0 unless $val->is_selected
449 0 0 if $val->is_selected
456 0 0 if not $current and $value or $current and not $value
468 0 0 unless $cb
469 0 0 $$self{'driver'} ? :
509 0 0 unless ref $self
510 0 0 $$self{'driver'} ? :
521 0 0 unless ref $self
522 0 0 if defined $callback and reftype $callback ne 'CODE'
523 0 0 $$self{'driver'} ? :
544 0 0 unless ref $self
545 0 0 if defined $callback and reftype $callback ne 'CODE'
546 0 0 unless $self->is_form
547 0 0 $$self{'driver'} ? :