Point users in the right direction when selenium is not available.

This commit is contained in:
Damian Janowski 2010-04-12 16:39:27 -03:00
parent 2f12422ae8
commit bd6cd436de
1 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,12 @@ require "webrat/selenium/selenium_rc_server"
require "webrat/selenium/application_server_factory"
require "webrat/selenium/application_servers/base"
begin
require "selenium"
rescue LoadError => e
e.message << " (You may need to install the selenium-rc gem)"
raise e
end
module Webrat
class TimeoutError < WebratError