Skip to content

Commit

Permalink
Selenium is a session type, not an adapter type
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Aug 13, 2009
1 parent 2e6bef3 commit ec43bb9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/webrat/core/session.rb
Expand Up @@ -13,7 +13,11 @@ class InfiniteRedirectError < WebratError
end

def self.session_class
Session
if Webrat.configuration.mode == :selenium
SeleniumSession
else
Session
end
end

def self.adapter_class
Expand All @@ -31,8 +35,6 @@ def self.adapter_class
when :sinatra
warn("The :sinatra mode is deprecated. Please use :rack instead")
SinatraAdapter
when :selenium
SeleniumSession
when :mechanize
MechanizeAdapter
else
Expand Down

0 comments on commit ec43bb9

Please sign in to comment.