← Back to team overview

sikuli-driver team mailing list archive

[Question #208949]: Expected behaviour of region after it's been changed

 

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

Suppose I assign the results of Region.find(<img>) to variable x, then click() that region (in this case it's a text box), and then type() text into the box.

Since the region x no longer matches <img> (as a result of typing text in the box), is the region no longer "valid"?

I would expect to be able to call "x.below(45).find(<img2>)" to search for an image below the originally returned region, but it doesn't seem to work.

Perhaps I misunderstand Region - once "found" I expect it's just a geometric representation.  Is "x.below(45).find(<img2>)" again trying to find <img> from the original call to find()?

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