Browse Source

Changed the Finder strings that will be used to "find" elements - Aidan Foley discovered these strings.

Aditya Ivaturi 15 năm trước cách đây
mục cha
commit
7bca5ff5ab
1 tập tin đã thay đổi với 9 bổ sung10 xóa
  1. 9 10
      lib/Selenium/Remote/Driver.pm

+ 9 - 10
lib/Selenium/Remote/Driver.pm

@@ -11,16 +11,15 @@ use Selenium::Remote::Commands;
 use Selenium::Remote::WebElement;
 
 use constant FINDERS => {
-        class             => 'ClassName',
-        class_name        => 'ClassName',
-        css               => 'CssSelector',
-        id                => 'id',
-        link              => 'LinkText',
-        link_text         => 'LinkText',
-        name              => 'name',
-        partial_link_text => 'PartialLinkText',
-        tag_name          => 'TagName',
-        xpath             => 'xpath',
+      class             => 'class name',
+      class_name        => 'class name',
+      id                => 'id',
+      link              => 'link text',
+      link_text         => 'link text',
+      name              => 'name',
+      partial_link_text => 'partial link text',
+      tag_name          => 'tag name',
+      xpath             => 'xpath',
 };
 
 our $VERSION = "0.10";