How to select an one of the option from dropdown list?

Asked by koventhan

want to select one of the option from dropdown menu (GUI). Example want to open Notepad and perform this operation ,file-->save-->save

I have tried like below

OpenApp("Notepad)
wait(file.PNG,5)
click(file.PNG)
click(save.PNG)
click(save.PNG)

but I am not getting Save As window after click(save.PNG) and same as Internet Explorer also i tried even there also same issue.

Note: if there is no shortcut keys, how will select?

I am taking snapshot of each and every option and giving in sikuli because here i don't have any shortcut key available. please help me for this?

Could you please help me for this issue?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
koventhan
Solved:
Last query:
Last reply:
Revision history for this message
akbar (mohammed-akbar-ali) said :
#1

Is the click on save.png happening? Can you see the mouse movement on this image during the run? Add some wait between each step and try.

Revision history for this message
koventhan (kingsaa2000) said :
#3

Yes i have added some wait and sleep between each stpes and now its working fine.

I have one more doubt, I want to take one of the string from x file and store in y file and compared with z file.

Example : File - student_list.txt

1. Student Name - Kumar
2. Student ID- 12345
3. Student percentage - 75%

From these lines, wants to take Kumar's name and store into yyyy.txt. Here i want only "Kumar" should be there in yyyy.txt file.

And zzzz.txt has Student Name - Kumar, Want to compare with yyyy.txt and zzzz.txt. Both the name should same and result should PASS. Is it possible in sikuli?

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

Why using the stony visual way?

Just read and write the files directly.

Revision history for this message
akbar (mohammed-akbar-ali) said :
#5

Yes lot of programming languages give powerful file operation capabilities. Also can you mark the query as solved as your original problem is solved?

Revision history for this message
koventhan (kingsaa2000) said :
#6

Yes i will close original issue now,,,, Thanks a lot :) :)