Skip to content

Commit 765386a

Browse files
committed
feat: add browser in console script
1 parent b1c8d0b commit 765386a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/console

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ require "irb"
88
require "irb/completion"
99
require "ferrum"
1010

11+
def browser(headless: true, **options)
12+
@browser ||= Ferrum::Browser.new(headless: headless, **options)
13+
end
14+
1115
IRB.start

0 commit comments

Comments
 (0)