diff --git a/lib/ae_page_objects/concerns/visitable.rb b/lib/ae_page_objects/concerns/visitable.rb index 81e6e0bd..4fc70adb 100644 --- a/lib/ae_page_objects/concerns/visitable.rb +++ b/lib/ae_page_objects/concerns/visitable.rb @@ -22,8 +22,6 @@ def ensure_loaded! module VisitMethod def visit(*args) - raise ArgumentError, "Cannot pass block to visit()" if block_given? - full_path = site.generate_path(paths.first, *args) raise PathNotResolvable, "#{self.name} not visitable via #{paths.first}(#{args.inspect})" unless full_path