lib/page_magic.rb in page_magic-1.2.5 vs lib/page_magic.rb in page_magic-1.2.6

- old
+ new

@@ -33,9 +33,17 @@ include(InstanceMethods) extend(Elements, ClassMethods) end end + # Create a more complex mapping to identify when a page should be loaded + # @example + # PageMagic.mapping '/', parameters: {project: 'page_magic'}, fragment: 'display' + # @see Matchers#initialize + def mapping(path = nil, parameters: nil, fragment: nil) + Matcher.new(path, parameters: parameters, fragment: fragment) + end + # Visit this page based on the class level registered url # @param [Object] application rack application (optional) # @param [Symbol] browser name of browser # @param [String] url url to start the session on # @param [Hash] options browser driver specific options