Branch Coverage

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


line true false branch
17 0 0 if ref $class
18 0 0 unless $element
19 0 0 unless $driver == 0 or blessed $driver and blessed $driver eq 'WWW::Selenium'
34 0 0 unless ref $self
35 0 0 if ($$self{'driver'})
38 0 0 unless scalar grep({$_ eq $parts[0];} 'id', 'css')
39 0 0 $parts[0] eq 'id' ? :
48 0 0 unless ref $self
49 0 0 unless $self->is_input
50 0 0 $$self{'driver'} ? :
59 0 0 unless ref $self
66 0 0 unless ref $self
75 0 0 unless ref $self
82 0 0 unless ref $self
83 0 0 unless $self->is_select
84 0 0 $$self{'driver'} ? :
90 0 0 unless ref $self
97 0 0 unless ref $self
104 0 0 unless ref $self
111 0 0 unless ref $self
118 0 0 unless ref $self
119 0 0 if $$self{'driver'}
126 0 0 unless ref $self
127 0 0 if $$self{'driver'}
134 0 0 unless ref $self
141 0 0 unless ref $self
143 0 0 $$self{'driver'} ? :
149 0 0 unless ref $self
150 0 0 unless $self->is_select
151 0 0 if ($$self{'driver'})
165 0 0 unless ref $self
166 0 0 unless defined $option
167 0 0 unless $self->is_select
174 0 0 unless ref $self
175 0 0 unless $self->is_option
176 0 0 $$self{'driver'} ? :
182 0 0 unless ref $self
185 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) { }
186 0 0 $$self{'driver'} ? :
188 0 0 if ($self->is_multiselect) { }
189 0 0 $_->is_selected ? :
192 0 0 $$self{'driver'} ? :
195 0 0 $$self{'driver'} ? :
197 0 0 $$self{'driver'} ? :
199 0 0 $$self{'driver'} ? :
206 0 0 $$self{'driver'} ? :
212 0 0 $$self{'driver'} ? :
218 0 0 unless ref $self
219 0 0 unless $self->is_textinput
220 0 0 if ($$self{'driver'}) { }
222 0 0 unless scalar grep({$_ eq $$self{'selector'}[1];} 'id', 'css')
223 0 0 $$self{'selector'}[1] eq 'id' ? :
234 0 0 unless ref $self
235 0 0 unless defined $value
236 0 0 if defined $callback and reftype $callback ne 'CODE'
239 0 0 unless $enabled
240 0 0 unless $enabled
245 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) { }
246 0 0 $$self{'driver'} ? :
247 0 0 if $selected and $value or not $selected || $value
248 0 0 $$self{'driver'} ? :
252 0 0 $$self{'driver'} ? :
255 0 0 if ($$self{'driver'}) { }
263 0 0 unless $self->id
269 0 0 if reftype $value ne 'ARRAY'
270 0 0 if ($$self{'driver'}) { }
276 0 0 if (grep {$$val{'element'}->get_attribute('name') eq $_;} @$value) { }
278 0 0 unless $val->is_selected
281 0 0 if $val->is_selected
288 0 0 if not $current and $value or $current and not $value
300 0 0 unless $cb
301 0 0 $$self{'driver'} ? :
312 0 0 unless ref $self
313 0 0 $$self{'driver'} ? :
319 0 0 unless ref $self
320 0 0 if defined $callback and reftype $callback ne 'CODE'
321 0 0 $$self{'driver'} ? :
329 0 0 unless ref $self
330 0 0 if defined $callback and reftype $callback ne 'CODE'
331 0 0 unless $self->is_form
332 0 0 $$self{'driver'} ? :