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
|
end
|
||||||
|
|
||||||
def self.session_class
|
def self.session_class
|
||||||
|
if Webrat.configuration.mode == :selenium
|
||||||
|
SeleniumSession
|
||||||
|
else
|
||||||
Session
|
Session
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def self.adapter_class
|
def self.adapter_class
|
||||||
case Webrat.configuration.mode
|
case Webrat.configuration.mode
|
||||||
|
@ -31,8 +35,6 @@ module Webrat
|
||||||
when :sinatra
|
when :sinatra
|
||||||
warn("The :sinatra mode is deprecated. Please use :rack instead")
|
warn("The :sinatra mode is deprecated. Please use :rack instead")
|
||||||
SinatraAdapter
|
SinatraAdapter
|
||||||
when :selenium
|
|
||||||
SeleniumSession
|
|
||||||
when :mechanize
|
when :mechanize
|
||||||
MechanizeAdapter
|
MechanizeAdapter
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue