Exemple #1
0
 def tearDown(self):
     self.driver.delete_all_cookies()
     time_png = strftime("%Y_%m_%d_%H_%M_%S", gmtime())
     name = __name__ + time_png
     screenShotFile = os.path.join(Util.getScreenShotsPath(),name+'.png')
     
     self.driver.save_screenshot(screenShotFile)
Exemple #2
0
    def tearDown(self):
        self.driver.delete_all_cookies()
        name = __name__
        screenShotFile = os.path.join(Util.getScreenShotsPath(), name + '.png')

        self.driver.save_screenshot(screenShotFile)
 def tearDown(self):
     time_png = strftime("%Y_%m_%d_%H_%M_%S", localtime())
     name = __name__ + time_png
     screenShotFile = os.path.join(Util.getScreenShotsPath(), name + '.png')
     self.driver.save_screenshot(screenShotFile)