Skip to content

Commit 35d3b11

Browse files
DylanLaceyKazuCocoa
authored andcommitted
Alias quit_driver to driver_quit. (#634)
To start a driver, you create a driver object then call `start_driver`. To quit a driver, you have to remember both not to call `stop_driver`, but also to reverse the order and call `driver_quit`, which just feels a bit... janky? I'd suggest also aliasing `stop_driver`, but calling `quit` to end a controlled session seems to be the community norm.
1 parent 214cf72 commit 35d3b11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/appium_lib/driver.rb

+3
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,9 @@ def driver_quit
629629
nil
630630
end
631631

632+
# Alias for driver_quit
633+
alias_method :quit_driver, :driver_quit
634+
632635
# Creates a new global driver and quits the old one if it exists.
633636
# You can customise http_client as the following
634637
#

0 commit comments

Comments
 (0)