@@ -82,24 +82,17 @@ def test_default_timeout_for_http_client
82
82
end
83
83
84
84
def test_search_context_in_element_class
85
- expected = {
86
- class : 'class name' ,
87
- class_name : 'class name' ,
88
- css : 'css selector' ,
89
- id : 'id' ,
90
- link : 'link text' ,
91
- link_text : 'link text' ,
92
- name : 'name' ,
93
- partial_link_text : 'partial link text' ,
94
- tag_name : 'tag name' ,
95
- xpath : 'xpath' ,
96
- accessibility_id : 'accessibility id' ,
97
- uiautomation : '-ios uiautomation' ,
98
- predicate : '-ios predicate string' ,
99
- class_chain : '-ios class chain' ,
100
- uiautomator : '-android uiautomator'
101
- }
102
- assert_equal expected , ::Selenium ::WebDriver ::Element ::FINDERS
85
+ assert_equal 'class name' , ::Selenium ::WebDriver ::Element ::FINDERS [ :class ]
86
+ assert_equal 'class name' , ::Selenium ::WebDriver ::Element ::FINDERS [ :class_name ]
87
+ assert_equal 'css selector' , ::Selenium ::WebDriver ::Element ::FINDERS [ :css ]
88
+ assert_equal 'id' , ::Selenium ::WebDriver ::Element ::FINDERS [ :id ]
89
+ assert_equal 'link text' , ::Selenium ::WebDriver ::Element ::FINDERS [ :link ]
90
+ assert_equal 'link text' , ::Selenium ::WebDriver ::Element ::FINDERS [ :link_text ]
91
+ assert_equal 'name' , ::Selenium ::WebDriver ::Element ::FINDERS [ :name ]
92
+ assert_equal 'partial link text' , ::Selenium ::WebDriver ::Element ::FINDERS [ :partial_link_text ]
93
+ assert_equal 'tag name' , ::Selenium ::WebDriver ::Element ::FINDERS [ :tag_name ]
94
+ assert_equal 'xpath' , ::Selenium ::WebDriver ::Element ::FINDERS [ :xpath ]
95
+ assert_equal 'accessibility id' , ::Selenium ::WebDriver ::Element ::FINDERS [ :accessibility_id ]
103
96
end
104
97
end
105
98
end
0 commit comments