← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #244181]: My scripts are failing due to slight change in radio button. How to overcome this issue?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Supposing it is version 1.0.1:

you have to use
click(Pattern(radio_button_unselected).exact()) # for a score > 0.99
or
click(Pattern(radio_button_unselected).similar(some_high_value) # the value should be > 0.95

instead of 
click(radio_button_unselected)

… and take care, that the button image contains as little background as
possible. Th less background, the higher the min score value can be.

You might have to play around with different button images.

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