class SeleniumLauncher::Browser
Attributes
name[R]
Public Class Methods
load()
click to toggle source
# File lib/selenium-launcher/browser.rb, line 20 def self.load [ Chrome.new, Firefox.new, InternetExplorer.new, Safari.new ].find { |browser| browser.match? } end
Public Instance Methods
capabilities()
click to toggle source
# File lib/selenium-launcher/browser.rb, line 15 def capabilities #::Selenium::WebDriver::Remote::Capabilities.send(name) name.to_sym end
match?()
click to toggle source
# File lib/selenium-launcher/browser.rb, line 11 def match? name == ENV['SE_BROWSER'] end