Top Level Namespace
Defined Under Namespace
Modules: Accessibility, RSpec
Instance Method Summary collapse
-
#have_child(kind, filters = {}) { ... } ⇒ Object
Assert that the receiving element has the specified child element.
-
#have_descendent(kind, filters = {}) { ... } ⇒ Object
(also: #have_descendant)
Assert that the given element has the specified descendent.
-
#shortly_have_child(kind, filters = {}) { ... } ⇒ Object
Assert that the given element has the specified child soon.
-
#shortly_have_descendent(kind, filters = {}) { ... } ⇒ Object
(also: #shortly_have_descendant)
Assert that the given element has the specified descendent soon.
Instance Method Details
#have_child(kind, filters = {}) { ... } ⇒ Object
Assert that the receiving element has the specified child element. You can use any filters you would normally use in a search, including a block.
174 175 176 |
# File 'lib/rspec/expectations/ax_elements.rb', line 174 def have_child kind, filters = {}, &block Accessibility::HasChildMatcher.new kind, filters, &block end |
#have_descendent(kind, filters = {}) { ... } ⇒ Object Also known as: have_descendant
Assert that the given element has the specified descendent. You can pass any parameters you normally would use during a search, including a block.
192 193 194 |
# File 'lib/rspec/expectations/ax_elements.rb', line 192 def have_descendent kind, filters = {}, &block Accessibility::HasDescendentMatcher.new kind, filters, &block end |
#shortly_have_child(kind, filters = {}) { ... } ⇒ Object
Assert that the given element has the specified child soon. This method will block until the child is found or a timeout occurs. You can pass any parameters you normally would use during a search, including a block.
212 213 214 |
# File 'lib/rspec/expectations/ax_elements.rb', line 212 def shortly_have_child kind, filters = {}, &block Accessibility::HasChildShortlyMatcher.new(kind, filters, &block) end |
#shortly_have_descendent(kind, filters = {}) { ... } ⇒ Object Also known as: shortly_have_descendant
Assert that the given element has the specified descendent soon. This method will block until the descendent is found or a timeout occurs. You can pass any parameters you normally would use during a search, including a block.
231 232 233 |
# File 'lib/rspec/expectations/ax_elements.rb', line 231 def shortly_have_descendent kind, filters = {}, &block Accessibility::HasDescendentShortlyMatcher.new kind, filters, &block end |