Prechádzať zdrojové kódy

Set up failing tests that pertain to #145

Daniel Gempesaw 11 rokov pred
rodič
commit
60c6857b00

+ 2 - 0
t/02-webelement.t

@@ -53,6 +53,8 @@ INPUT: {
     is($ret, 'id', 'Get value (attribute)');
     $ret = $elem->get_attribute('value');
     is($ret, 'id', 'Get attribute @value');
+    $ret = $elem->get_attribute('missing-attribute');
+    ok(!$ret, 'Get attribute returns false for a missing attribute.');
     $ret = $elem->get_tag_name();
     is($ret, 'input', 'Get tag name');
 

+ 2 - 0
t/Test-Selenium-Remote-Driver-google.t

@@ -1,4 +1,6 @@
 #!/usr/bin/env perl
+use strict;
+use warnings;
 use Test::More;
 use Test::Selenium::Remote::Driver;