diff --git a/lib/ferrum/page/frames.rb b/lib/ferrum/page/frames.rb index 04f07359..066ea10d 100644 --- a/lib/ferrum/page/frames.rb +++ b/lib/ferrum/page/frames.rb @@ -36,7 +36,7 @@ def frames end # - # Find frame by given options. + # Find a frame by given params. # # @param [String] id # Unique frame's id that page provides. @@ -60,8 +60,6 @@ def frame_by(id: nil, name: nil, execution_id: nil) frames.find { |f| f.name == name } elsif execution_id frames.find { |f| f.execution_id == execution_id } - else - raise ArgumentError end end