Selenium is a session type, not an adapter type
This commit is contained in:
parent
2e6bef3b57
commit
ec43bb9546
|
@ -13,8 +13,12 @@ module Webrat
|
|||
end
|
||||
|
||||
def self.session_class
|
||||
if Webrat.configuration.mode == :selenium
|
||||
SeleniumSession
|
||||
else
|
||||
Session
|
||||
end
|
||||
end
|
||||
|
||||
def self.adapter_class
|
||||
case Webrat.configuration.mode
|
||||
|
@ -31,8 +35,6 @@ module Webrat
|
|||
when :sinatra
|
||||
warn("The :sinatra mode is deprecated. Please use :rack instead")
|
||||
SinatraAdapter
|
||||
when :selenium
|
||||
SeleniumSession
|
||||
when :mechanize
|
||||
MechanizeAdapter
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue