Ensure browser type is initialized csafely
This commit is contained in:
parent
34693f4ef0
commit
fdeb1b9eb5
@ -5,7 +5,7 @@ require 'base64'
|
|||||||
module PersistentSelenium
|
module PersistentSelenium
|
||||||
class Browser < Capybara::Selenium::Driver
|
class Browser < Capybara::Selenium::Driver
|
||||||
def initialize(browser_type)
|
def initialize(browser_type)
|
||||||
@browser_type = browser_type
|
@browser_type = browser_type.to_s.to_sym
|
||||||
@__found_elements__ = []
|
@__found_elements__ = []
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user