class LuckyFlow::Server

Overview

Handles starting and stopping server sessions

Defined in:

lucky_flow/server.cr

Constant Summary

CAPABILITIES = {browserName: "chrome", platform: "ANY", javascriptEnabled: true, takesScreenshot: true, handlesAlerts: true, databaseEnabled: true, locationContextEnabled: true, applicationCacheEnabled: true, browserConnectionEnabled: true, cssSelectorsEnabled: true, webStorageEnabled: true, rotatable: true, acceptSslCerts: true, nativeEvents: true, chromeOptions: {args: ["no-sandbox", "headless", "disable-gpu"]}}
INSTANCE = new

This is used so that only one server instance is started

Instance Method Summary

Instance Method Detail

def reset #

[View source]
def session : Selenium::Session #

Start a new selenium session with Chromedriver


[View source]
def shutdown #

[View source]