class Capybara::Selector

def match?(locator)

Returns:
  • (Boolean) - Whether or not to use this selector

Parameters:
  • locator (String) -- The locator passed to the query
def match?(locator)
  @match&.call(locator)
end