Selenium is a session type, not an adapter type
This commit is contained in:
parent
2e6bef3b57
commit
ec43bb9546
|
@ -13,7 +13,11 @@ module Webrat
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.session_class
|
def self.session_class
|
||||||
Session
|
if Webrat.configuration.mode == :selenium
|
||||||
|
SeleniumSession
|
||||||
|
else
|
||||||
|
Session
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.adapter_class
|
def self.adapter_class
|
||||||
|
@ -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