← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #210518]: Click button beside a label using Java

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Ok, then the button with FF looks different (Chrome and FF have
different rendering engines).

This is a general problem for Sikuli: even minor differences on the
pixel level (might only visible for the human if you magnify the probes
so you can see the pixels) will force Sikuli to fail (not found).

The only chance: have different image sets for the different situations.

In this case another possibility might be: If the button is in a "fixed"
location with respect to the label in all situations, then you might
use:

Match m = sample.find("lblFileUpload.png");
click(m.getCenter().offset(x,y))

You might evaluate the x,y with the IDE-Preview -> target offset tab.

--- your questions:

i) see above - depends ;-)

ii) should normally be no problem, but .... ???

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