Method: Selenium::WebDriver::Firefox::Binary#create_base_profile
- Defined in:
- lib/selenium/webdriver/firefox/binary.rb
#create_base_profile(name) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/selenium/webdriver/firefox/binary.rb', line 14 def create_base_profile(name) execute("-CreateProfile", name) status = nil Timeout.timeout(15, Error::TimeOutError) do _, status = wait end if status && status.to_i != 0 raise Error::WebDriverError, "could not create base profile: (exit status: #{status})" end end |