Class: JavascriptTestAutotest::Browser
- Inherits:
-
Object
- Object
- JavascriptTestAutotest::Browser
- Defined in:
- lib/newjs/autotest/javascript_test_autotest.rb
Class Method Summary collapse
Class Method Details
.browser(browser, path) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/newjs/autotest/javascript_test_autotest.rb', line 4 def browser(browser, path) case(browser.to_sym) when :firefox FirefoxBrowser.new(path) when :safari SafariBrowser.new(path) when :ie IEBrowser.new(path) when :konqueror KonquerorBrowser.new(path) else browser end end |