Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Selenium::Session can be serialized/unserialized. #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/selenium/command_handler.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
require "json"

class Selenium::CommandHandler
include JSON::Serializable
include DefaultCommands
getter http_client : HttpClient

Expand Down
4 changes: 4 additions & 0 deletions src/selenium/http_client.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
require "json"

class Selenium::HttpClient
include JSON::Serializable

getter base_url : String

def initialize(@base_url)
Expand Down
4 changes: 4 additions & 0 deletions src/selenium/session.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
require "json"

class Selenium::Session
include JSON::Serializable

getter http_client : HttpClient
getter command_handler : CommandHandler
getter id : SessionId
Expand Down