Selenium is a session type, not an adapter type

This commit is contained in:
Bryan Helmkamp 2009-08-12 21:44:02 -04:00
parent 2e6bef3b57
commit ec43bb9546
1 changed files with 5 additions and 3 deletions

View File

@ -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