Point users in the right direction when selenium is not available.
This commit is contained in:
parent
2f12422ae8
commit
bd6cd436de
@ -3,7 +3,12 @@ require "webrat/selenium/selenium_rc_server"
|
|||||||
require "webrat/selenium/application_server_factory"
|
require "webrat/selenium/application_server_factory"
|
||||||
require "webrat/selenium/application_servers/base"
|
require "webrat/selenium/application_servers/base"
|
||||||
|
|
||||||
|
begin
|
||||||
require "selenium"
|
require "selenium"
|
||||||
|
rescue LoadError => e
|
||||||
|
e.message << " (You may need to install the selenium-rc gem)"
|
||||||
|
raise e
|
||||||
|
end
|
||||||
|
|
||||||
module Webrat
|
module Webrat
|
||||||
class TimeoutError < WebratError
|
class TimeoutError < WebratError
|
||||||
|
Loading…
Reference in New Issue
Block a user