Ejemplo n.º 1
0
    def testClick(self):
        appwin = utils.findWindow(self.chromewindowname, comparetype="notequal")
        appstate = utils.WindowState(self.chromewindowname, comparetype="notequal")

        self.assertTrue(False == appstate.is_minimized())
        self.clickDockAppIcon()
        self.assertTrue(True == appstate.is_minimized())
        self.clickDockAppIcon()
        self.assertTrue(False == appstate.is_minimized())
        self.clickDockAppIcon()
        self.assertTrue(True == appstate.is_minimized())
        self.clickDockAppIcon()
        self.assertTrue(False == appstate.is_minimized())
        self.clickDockAppIcon()
        self.assertTrue(True == appstate.is_minimized())
        self.clickDockAppIcon()
        self.assertTrue(False == appstate.is_minimized())
 def minimizeWin(self):
     filemanagerwin = utils.WindowState(self.filemanagerwindowname)
     filemanagerwin.minimize()
     state = filemanagerwin.is_minimized()
     self.assertTrue(state)
 def testCloseFileManager(self):
     filemanagerwin = utils.WindowState(self.filemanagerwindowname)
     filemanagerwin.close()
     win = utils.findWindow(self.filemanagerwindowname, mode="nowait")
     self.assertTrue(None == win)
Ejemplo n.º 4
0
 def testExpectResult(self):
     filemanagerwin = utils.WindowState(self.filemanagerwindowname)
     state = filemanagerwin.is_minimized()
     self.assertFalse(state)