Explorar el Código

Fix inaccurate docs re: find_child_elements xpath

This was missed in #21.
Daniel Gempesaw hace 10 años
padre
commit
3d287dd765
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      lib/Selenium/Remote/Driver.pm

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

@@ -2126,7 +2126,8 @@ sub find_child_element {
 
  Usage:
     my $elem1 = $driver->find_element("//select[\@name='ned']");
-    my $child = $driver->find_child_elements($elem1, "//option");
+    # note the usage of ./ when searching for a child element instead of //
+    my $child = $driver->find_child_elements($elem1, "./option");
 
 =cut