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]

Re: [QF-Test] Close Error Dialog


  • Subject: Re: [QF-Test] Close Error Dialog
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Fri, 13 Jul 2012 15:28:21 +0200

Hi Elissa,

it looks like the title you specified ("Error-Composite Studio")
doesn't match the dialog shown in the screenshot (hard to tell, looks
more like "Error Composite-Studio", maybe more than one blank).

If you can't match the title exactly, try using a regexp like
".*Composite.*". Be sure to modifiy the script from 

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

to 

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

Best regards,
    Greg

"Elissa (Xiangyu) Shi" <eshi@?.com> writes:

> 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();
>
> [cid]                                              
>
> 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 ,
>
> [cid]                                                                     
>
>       Are there any method or something else to deal with my case?
>
> Thanks
>
> Elissa

-- 
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                               Tel: +49 8171 38648-0
DE-82538 Geretsried                         Fax: +49 8171 3864816
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833