How to recognise data in a image?

Asked by Nikhilesh

I want to test a field in my form. If the value of that field is 0 i want to run some steps & if the vaklue oif that field is 5 i want to run other steps.But sikuli doesn't recognises the data in that field. How to deal with it?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

--- But sikuli doesn't recognises the data in that field.

What did you try?

Revision history for this message
Nikhilesh (nikhileshp) said :
#2

I've found the solution. I set the Maching preview=1 in the pattern setting s for that image

Thank You.

Would you please suggest a solution if I have to get the value from a field into a variable?
Suppose the field caontains a value=5, now I want to get that value i.e. 5 assigned to a variable where I can resuse that value in my next steps?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

So, currently you seem to use images.

You might try Region.text() (see docs).
But be aware: bug 710586

Can you help with this problem?

Provide an answer of your own, or ask Nikhilesh for more information if necessary.

To post a message you must log in.