Class: Async::WebDriver::Bridge::ProcessDriver

Inherits:
Driver
  • Object
show all
Defined in:
lib/async/webdriver/bridge/process_group.rb

Instance Attribute Summary

Attributes inherited from Driver

#count, #status

Instance Method Summary collapse

Methods inherited from Driver

#The status of the driver after a connection has been established.=, #client, #closed?, #concurrency, #endpoint, #ephemeral_port, #port, #reusable?, #start, #viable?

Constructor Details

#initialize(endpoint, process) ⇒ ProcessDriver

Returns a new instance of ProcessDriver.



79
80
81
82
83
# File 'lib/async/webdriver/bridge/process_group.rb', line 79

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

Instance Method Details

#closeObject



85
86
87
88
89
90
91
92
# File 'lib/async/webdriver/bridge/process_group.rb', line 85

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