Ejemplo n.º 1
0
 def prepareEnv(self, deviceID):
     self.safariProcess = None
     super(OSXSafariDriver, self).prepareEnv(deviceID)
     forceRemove(os.path.join(os.path.expanduser('~'), 'Library/Saved Application State/com.apple.Safari.savedState'))
     forceRemove(os.path.join(os.path.expanduser('~'), 'Library/Safari/LastSession.plist'))
     self.maximizeWindow()
     self.safariPreferences = ["-HomePage", "about:blank", "-WarnAboutFraudulentWebsites", "0", "-ExtensionsEnabled", "0", "-ShowStatusBar", "0", "-NewWindowBehavior", "1", "-NewTabBehavior", "1"]
Ejemplo n.º 2
0
 def prepareEnv(self):
     self.safariProcess = None
     self.closeBrowsers()
     forceRemove(
         os.path.join(
             os.path.expanduser('~'),
             'Library/Saved Application State/com.apple.Safari.savedState'))
     forceRemove(
         os.path.join(os.path.expanduser('~'),
                      'Library/Safari/LastSession.plist'))
     self.safariPreferences = [
         "-HomePage", "about:blank", "-WarnAboutFraudulentWebsites", "0",
         "-ExtensionsEnabled", "0", "-ShowStatusBar", "0",
         "-NewWindowBehavior", "1", "-NewTabBehavior", "1"
     ]
Ejemplo n.º 3
0
 def clean(self):
     _log.info('Cleanning Benchmark')
     if self.webRoot:
         forceRemove(self.webRoot)