← Back to team overview

sikuli-driver team mailing list archive

[Question #263726]: observe - coding structure

 

New question #263726 on Sikuli:
https://answers.launchpad.net/sikuli/+question/263726

Hello, 
i am fairly new with the sikuli script and unfortunately not a coder by profession, therefore i am asking here my question after reading around in the Forum and not figuring out the solution yet....

I have a sikuli Task (order processing);
Normally, if the order processing goes well, at the end (after 3-4 minutes) there is a text like "congratulation, your purchase is finished." -> in this case my order processing script would mark the order as completed.

But if something goes wrong (Website does not load, address not found, product out of stock), obviously, the text will never appear.


What I would like to do is to have an observer function in the Background running for 6 Minutes (while the order processing does its task) and if for 6 Minutes the "congratulation" - text does NOT appear, then to make an error popup.  

any help ?

PS. is it a Problem for the observer function if the order processing script is split up in 3 .sikuli parts and each one loads the next part with Import() ?

thanks you !









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