← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #161652]: How to check text box is having content or not??

 

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

    Status: Answered => Open

Saorabh Singh is still having a problem:
hi,
thanks for Answer.
but m.getScore() isnot Available in java,
So do we have any other Equivalent function which can be used in java??



On Thu, Jun 16, 2011 at 7:01 PM, RaiMan <
question161652@xxxxxxxxxxxxxxxxxxxxx> wrote:

> Your question #161652 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/161652
>
> RaiMan proposed the following answer:
> If the entry field is empty, the returned match of
> find(blank_textbox.png) should have a score of nearly or exactly 1.0.
>
> If the entry field contains some text, it depends on the
> blank_textbox.png, but if it succeeds, it should have a score markedly
> below 0.9.
>
> So you can use the match's score to distinguish the 2 situations.
>
> example (to be translated to correct Java ;-)
>
> Match m = s.find("blank_textbox.png")
> if m.getScore() > 0.95 # textbox empty
> else: # textbox filled
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/161652/+confirm?answer_id=1
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/161652
>
> You received this question notification because you asked the question.
>

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