Similar object identification

Asked by kishore

Hi,

I have two textfield boxs its look similar text field when trying taking screenshot and wrote the code like

   type("1337143442039.png","username")
   type("1337143442039.png","password")

above code similar images for both textfields so how we need to different both the images?

Regards,
Kishore

Question information

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

use different images for both fields, e.g. by including part of the label (above or left side)
Use IDE's Preview feature to set the similarity needed to a high value (e.g. 0.95)

Already looked through the docs, to learn about Sikuli's features?

Revision history for this message
kishore (kishore-thotapally) said :
#2

Thanks RaiMan, that solved my question.