Module: Async::WebDriver::Bridge

Defined in:
lib/async/webdriver/bridge.rb,
lib/async/webdriver/bridge/pool.rb,
lib/async/webdriver/bridge/chrome.rb,
lib/async/webdriver/bridge/firefox.rb,
lib/async/webdriver/bridge/generic.rb,
lib/async/webdriver/bridge/process_group.rb

Overview

A bridge is a process that can be used to communicate with a browser. It is not needed in all cases, but is useful when you want to run integration tests without any external drivers/dependencies. As starting a bridge can be slow, it is recommended to use a shared bridge when possible.

Defined Under Namespace

Classes: Chrome, Firefox, Generic, Pool, ProcessGroup

Constant Summary collapse

ALL =
[
	Bridge::Chrome,
	Bridge::Firefox,
]

Class Method Summary collapse

Class Method Details

.each(&block) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/async/webdriver/bridge.rb', line 20

def self.each(&block)
	return enum_for(:each) unless block_given?
	
	ALL.each do |klass|
		next unless klass.new.supported?
		yield klass
	end
end