Explorar o código

Fix #222: document demolish/destroy behavior

Daniel Gempesaw %!s(int64=10) %!d(string=hai) anos
pai
achega
90a7f36094
Modificáronse 1 ficheiros con 10 adicións e 6 borrados
  1. 10 6
      lib/Selenium/Remote/Driver.pm

+ 10 - 6
lib/Selenium/Remote/Driver.pm

@@ -1076,12 +1076,16 @@ sub close {
 =head2 quit
 
  Description:
-    Delete the session & close open browsers. We will try to call this
-    on our down when we get DEMOLISHed, but in the event that we are
-    only demolished during global destruction, we will not be able to
-    close the browser. For your own unattended and/or complicated tests,
-    we recommend explicitly calling quit to make sure you're not leaving
-    orphan browsers around.
+    DELETE the session, closing open browsers. We will try to call
+    this on our down when we get destroyed, but in the event that we
+    are demolished during global destruction, we will not be able to
+    close the browser. For your own unattended and/or complicated
+    tests, we recommend explicitly calling quit to make sure you're
+    not leaving orphan browsers around.
+
+    Note that as a Moo class, we use a subroutine called DEMOLISH that
+    takes the place of DESTROY; for more information, see
+    https://metacpan.org/pod/Moo#DEMOLISH.
 
  Usage:
     $driver->quit();