Bug 1464196 - [geckodriver] Add missing import of tempfile to CrashReports.md. draft
authorHenrik Skupin <mail@hskupin.info>
Thu, 24 May 2018 21:33:15 +0200
changeset 799479 e20b9d9593fd69b5c9fadd3084160ea157efbf12
parent 799267 043e4ab6e72469ed8121f4da98dcdfef983a49d9
push id111077
push userbmo:hskupin@gmail.com
push dateThu, 24 May 2018 19:36:03 +0000
bugs1464196
milestone62.0a1
Bug 1464196 - [geckodriver] Add missing import of tempfile to CrashReports.md. MozReview-Commit-ID: EEjXhTpqeys
testing/geckodriver/doc/CrashReports.md
--- a/testing/geckodriver/doc/CrashReports.md
+++ b/testing/geckodriver/doc/CrashReports.md
@@ -10,16 +10,18 @@ Retrieve the crash data
 -----------------------
 
 Because geckodriver creates a temporary user profile for Firefox, it also
 automatically removes all its folders once the tests have been finished. That
 also means that if Firefox crashed the created minidump files are lost. To
 prevent that a custom profile has to be used instead. The following code
 shows an example by using the Python Selenium bindings on Mac OS:
 
+    import tempfile
+
     from selenium import webdriver
     from selenium.webdriver.firefox.options import Options
 
     # Custom profile folder to keep the minidump files
     profile = tempfile.mkdtemp(".selenium")
     print("*** Using profile: {}".format(profile))
 
     # Use the above folder as custom profile