Sfoglia il codice sorgente

- fix for case when child element cannot be found

Dmitry Karasik 11 anni fa
parent
commit
32c1e9786d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/Selenium/Remote/Driver.pm

+ 1 - 1
lib/Selenium/Remote/Driver.pm

@@ -1947,7 +1947,7 @@ sub find_child_elements {
                 die $@;
             }
         }
-        my $elem_obj_arr;
+        my $elem_obj_arr = [];
         my $i = 0;
         foreach (@$ret_data) {
             $elem_obj_arr->[$i] =