Facing issue with Sikuli 2.0.4 version for find() function.

Bug #1890138 reported by Kunal Gajbhiye
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Won't Fix
Undecided
RaiMan

Bug Description

Our objective is to be able to specify the timeout for the location of a bitmap.

In early version of Sikuli i.e. 1.1.1 find() function internally calls autoWaitTimeout() which wait's for stipulated time like if we overrides the autoWaitTime by placing below code,

sikuli_timeout = screen.getAutoWaitTimeout(); //it gives default time of Sikuli i.e. 3.0 sec
screen.setAutoWaitTimeout(10); //Overriding autoWaitTimeout by setting 10.0 sec

But in the latest version 2.0.4, find() is not calling the autoWaitTimeout due to which not able to override the default autoWaitTimeout. Please suggest how we can achieve this by some workaround.

Sikuli version - 2.0.4
Operating System - 64-bit Windows

Please check the find() method of Region.class of 2.0.4 and 1.1.1 and do comparison.

Revision history for this message
RaiMan (raimund-hocke) wrote :

use wait() instead.

This was a bad implementation in 1.x.

find() was always intended, to not wait for appearance, but search only once.

Changed in sikuli:
status: New → Won't Fix
assignee: nobody → RaiMan (raimund-hocke)
Revision history for this message
Kunal Gajbhiye (kunalgajbhiye-3ds) wrote :

Thanks RaiMan for very quick response this is what we need to know once again thanks for great product.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.