From af3f70a7f52cf518afca4d2c0951e5c4af8909ee Mon Sep 17 00:00:00 2001 From: Matthew McGarvey Date: Tue, 5 May 2020 20:19:55 -0500 Subject: [PATCH] formatting --- spec/features/alerts_spec.cr | 2 +- spec/features/window_interactions_spec.cr | 1 - src/selenium/driver.cr | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/features/alerts_spec.cr b/spec/features/alerts_spec.cr index bd43ed7..63ffe04 100644 --- a/spec/features/alerts_spec.cr +++ b/spec/features/alerts_spec.cr @@ -4,7 +4,7 @@ module Selenium::Command describe "alerts", tags: "feature" do it "works" do TestServer.route "/home", "

The Title

" - + with_session do |session| session.navigate_to("http://localhost:3002/home") document_manager = session.document_manager diff --git a/spec/features/window_interactions_spec.cr b/spec/features/window_interactions_spec.cr index 82abade..decfec8 100644 --- a/spec/features/window_interactions_spec.cr +++ b/spec/features/window_interactions_spec.cr @@ -3,7 +3,6 @@ require "../spec_helper" module Selenium::Command describe "window", tags: "feature" do it "can be interacted with" do - with_session do |session| window_manager = session.window_manager window_manager.maximize diff --git a/src/selenium/driver.cr b/src/selenium/driver.cr index bdd7821..2960d80 100644 --- a/src/selenium/driver.cr +++ b/src/selenium/driver.cr @@ -1,7 +1,8 @@ module Selenium::Driver DEFAULT_CONFIGURATION = { - base_url: "http://localhost:4444/wd/hub" + base_url: "http://localhost:4444/wd/hub", } + def self.for(browser, opts = DEFAULT_CONFIGURATION) options = DEFAULT_CONFIGURATION.merge(opts) case browser