Sha256: f981e60fdae246bebb1b2b0c674d5cd2fa2aed3d1144ece7dce4a4ae7e339ca3
Contents?: true
Size: 795 Bytes
Versions: 4
Compression:
Stored size: 795 Bytes
Contents
module SeleniumConnect class Runner class PhantomJS attr_reader :config def initialize(config) @config = config end def match? config.browser == "phantomjs" end def launch init_browser end private def get_executable_path current_dir_path = File.join(File.dirname(File.expand_path(__FILE__))) current_dir_path + "/../../../bin/phantomjs" end def config_browser executable_path = get_executable_path browser = Selenium::WebDriver::Remote::Capabilities.phantomjs browser['phantomjs.binary.path'] = executable_path return browser end def init_browser config_browser end end #Chrome end #Runner end #SeleniumConnect
Version data entries
4 entries across 4 versions & 1 rubygems