Mailing list - Entries of 2006


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

Re: [qftestJUI] Conditionally testing if a dialog box is present


  • Subject: Re: [qftestJUI] Conditionally testing if a dialog box is present
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 21 Sep 2006 22:22:08 +0200

Hi,

what you're looking for is the "Wait for component" node combined with
a Try/Catch construct of the form:

+ Try
  + "Wait for component", id of the dialog, useful short timeout
  + ... nodes for the case where the dialog is present
  + Catch ComponentNotFoundException
    + ... Dialog not present, so probably no nothing to do and no
          child nodes here

Best regards,
    Greg

<CHarris@?.com> writes:

>    I am missing something.  I am trying to detect if a dialog box is
>    present and then if it is present, to run a sequence on that dialog
>    box.  I tried doing a check on the dialog box but anytime I run the
>    sequence with the check, it will halt the test if the dialog box is
>    not present (which it is not most of the time).  What am I missing
>    here?
> 
>    Thanks.

-- 
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876


Videos Downloads Documentation Buy Free Trial