Async::WebDriverSourceAsyncWebDriverBridgeProcessDriver

class ProcessDriver

A driver wrapper that closes an associated process handle.

Definitions

def initialize(endpoint, process)

Initialize a process-backed driver.

Signature

parameter endpoint Object

Driver options or endpoint information.

parameter process ProcessGroup

The managed process group.

Implementation

def initialize(endpoint, process)
	super(endpoint)
	
	@process = process
end

def close

Close the driver and its process group.

Implementation

def close
	super
	
	if @process
		@process.close
		@process = nil
	end
end