Skip to content

Commit bcc7865

Browse files
committed
Quit driver before creating a new one. Always.
Fixes #181
1 parent a52f215 commit bcc7865

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/appium_lib/driver.rb

+1
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ def start_driver
422422
@client.timeout = 999999
423423

424424
begin
425+
driver_quit
425426
@driver = Selenium::WebDriver.for :remote, http_client: @client, desired_capabilities: @caps, url: server_url
426427
# Load touch methods.
427428
@driver.extend Selenium::WebDriver::DriverExtensions::HasTouchScreen

0 commit comments

Comments
 (0)