Browse Source

Fix inaccurate docs re: find_child_elements xpath

This was missed in #21.
Daniel Gempesaw 10 năm trước cách đây
mục cha
commit
3d287dd765
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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