Class: Selenium::WebDriver::Firefox::Launcher Private

Inherits:
Object
  • Object
show all
Defined in:
lib/webdriver-firefox/launcher.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#find_free_portObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



7
8
9
10
# File 'lib/webdriver-firefox/launcher.rb', line 7

def find_free_port
  pool = ::NoLockFirefox::PortPool.new
  @port = pool.find_free_port
end

#launchObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
15
16
17
18
19
20
# File 'lib/webdriver-firefox/launcher.rb', line 12

def launch
  find_free_port
  create_profile
  start_silent_and_wait
  start
  connect_until_stable

  self
end