← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #204853]: if... : go to

 

Question #204853 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204853

    Status: Open => Answered

Roman Podolyan proposed the following answer:
http://sikuli.org/docx/region.html#Region.waitVanish

waitVanish(PS[, seconds])

    Wait until the give pattern PS in the region vanishes.
    Parameters:	

        PS – a Pattern object or a string (path to an image file or just plain text)
        seconds – a number, which can have a fraction, as maximum waiting time in seconds. The internal granularity is milliseconds. If not specified, the auto wait timeout value set by Region.setAutoWaitTimeout() is used. Use the constant FOREVER to wait for an infinite time.

    Returns:

    True if the pattern vanishes within the specified waiting time, or
False if the pattern stays visible after the waiting time has elapsed.

    This method keeps searching the given pattern in the region until
the image vanishes (can not be found with Region.find() any longer) or
the specified amount of time has elapsed. At least one find operation is
performed, even if 0 seconds is specified.

    Note: You may adjust the scan rate (how often a search during the
wait takes place) by setting Settings.WaitScanRate appropriately.


===================

Does this solve your issue?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.