Skip to content

Commit

Permalink
feat: add browser in console script
Browse files Browse the repository at this point in the history
  • Loading branch information
route committed Feb 4, 2025
1 parent b1c8d0b commit 765386a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ require "irb"
require "irb/completion"
require "ferrum"

def browser(headless: true, **options)
@browser ||= Ferrum::Browser.new(headless: headless, **options)
end

IRB.start

0 comments on commit 765386a

Please sign in to comment.