← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #269936]: How to select textbox next to fixed text using sikuli in Java?

 

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

    Status: Open => Answered

Eugene S proposed the following answer:
The most straightforward way to do that will be locating that constant
text label and storing. Then you can define the region you are
interested in in relation to it.

For example:

relativeReg = find("iamge.png")
reg = Region(relativeReg )
reg = Region(relativeReg.x + X, relativeReg.y + Y, relativeReg.w + W, relativeReg.h + H)

where X,Y,W and H are the distance in pixels that you will have to set
manually.

when you have your region, you can click (or double click it to select
select the text) and do whatever you want to do with that field.

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