Procházet zdrojové kódy

Fix #222: document demolish/destroy behavior

Daniel Gempesaw před 10 roky
rodič
revize
90a7f36094
1 změnil soubory, kde provedl 10 přidání a 6 odebrání
  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();