class Capybara::Selector::Definition
def xpath(*allowed_filters, &block)
-
(#call)
- The block that will be called to generate the XPath expression
Overloads:
-
xpath()
-
xpath(*expression_filters, &block)
Other tags:
- Yieldreturn: - An object that can produce an xpath expression
Other tags:
- Yieldparam: options - The options hash passed to the query
Yieldparam: locator - The locator string passed to the query
Other tags:
- Yield: - The block to use to generate the XPath expression
Parameters:
-
expression_filters
(Array
) -- ([]) Names of filters that are implemented via this expression, if not specified the names of any keyword parameters in the block will be used
def xpath(*allowed_filters, &block) expression(:xpath, allowed_filters, &block) end