Branch Coverage

lib/WWW/Selenium.pm
Criterion Covered Total %
branch 42 66 63.6


line true false branch
55 1 31 unless $$self{'browser_url'}
56 0 31 unless $$self{'http_method'} =~ /^GET|POST$/
58 0 31 unless bless $self, $class
64 3 29 if $$self{'session_id'}
72 7 28 unless defined $$self{'session_id'}
81 24 279 if $command eq 'open'
89 1 37 unless ($$self{'_page_opened'} or $valid_pre_open_commands{$command})
94 0 302 if $get
99 0 302 $get ? :
104 273 29 if (defined $$self{'session_id'})
110 0 302 $get ? :
111 0 302 if $$self{'verbose'}
112 0 302 $get ? :
120 302 0 if ($response->is_success) { }
122 0 302 if $$self{'verbose'}
127 302 0 if $encode_present
128 5 297 unless $result =~ /^OK/
137 37 276 if (my $msec = $$self{'_timeout'})
159 12 294 if ($char eq '\\') { }
16 278 elsif ($char eq ',') { }
191 13 0 if ($result eq 'true')
194 0 0 if ($result eq 'false')
205 0 0 if ($result[$i] eq 'true')
209 0 0 if ($result[$i] eq 'false')
221 0 0 unless defined $timeout
1114 0 3 unless $$self{'no_deprecation_msg'}
1124 0 4 unless $$self{'no_deprecation_msg'}
1126 2 1 $self->get_string('isChecked', @_) ? :
1132 0 9 unless $$self{'no_deprecation_msg'}
1136 2 7 if $selector eq 'index'
1146 0 4 unless $$self{'no_deprecation_msg'}
1154 0 2 unless $$self{'no_deprecation_msg'}
1163 30 1 if $$self{'auto_stop'}