2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2012


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] Close Error Dialog


  • Subject: [QF-Test] Close Error Dialog
  • From: "Elissa (Xiangyu) Shi" <eshi@?.com>
  • Date: Thu, 12 Jul 2012 05:02:10 +0000

Hi guys,

I come from Composite, I try to write script to close the error dialog, but it can recognize my dialog using autowin.findwindow();

please see my script;

 

import autowin

reload(autowin)

 

windowc = autowin.findWindow(rc.lookup("titlechild"), 0)

 

 

if windowc == None:

                rc.logMessage("Couldn't find windowc with title: '" + rc.lookup("titlechild") + "'.", report=0)

      

       

else:

                autowin.closeWindow(windowc)

 

Follow is my log ,

      Are there any method or something else to deal with my case?

     

Thanks

Elissa