require "ferrum"
BROWSER_PATH="C:/Program Files/Google/Chrome/Application/chrome.exe"
# run betbot
def akira
chrome = Ferrum::Browser.new(
browser_path:BROWSER_PATH,
headless:false,
browser_options:{
'no-sandbox':nil,
'incognito':false,
'user-data-dir':'E:/ruby/akira/session',
}
)
chrome.go_to("https://google.com")
chrome.screenshot(path: "google.png")
chrome.quit
end
akira