Reading content from pop up

Asked by priyankap

We are trying to add a test script using sikuli IDE to add user
Our application generates a temporary password.
We need to read the password accurately and and login with the temp password
Is the OCR issue resolved in upcoming release

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
TestMechanic (ndinev) said :
#1

Any way to copy password from the popup. Usually this is possible in all web applications.

Revision history for this message
priyankap (priyankap) said :
#2

We are testing desktop applications and there are few characters which are not read correctly

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Is the temp password only shown as an image on screen, or can you select and copy the text?

Revision history for this message
TestMechanic (ndinev) said :
#4

1. Most of the desktop popups allow to be copied as well ... just try it.
2. You can always ask developers to make it copy-able. This is called testability
3. you can use more advanced OCR tool just for this purpose. Or even free online services

Revision history for this message
priyankap (priyankap) said :
#5

Shown as pop-up which has a complete line such as
Your OTP is Zrtlcut. Kindly login

This temp password is random and keeps changing
Can you please explain how can the password be used by copy of and selecting only the required part and storing the same accurately

Revision history for this message
TestMechanic (ndinev) said :
#6

First of all did you try to copy and paste from the pop-up let say to notpad

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Can you try the following manually (not using sikuli):

Click on the password, press ctrl-a and press ctrl-v, open notepad (or any other simple editor program), press ctrl-v.
What do you there?

Revision history for this message
masuo (masuo-ohara) said :
#8

@priyankap
Do you run SikuliX on Windows?
On Windows you can use UIAutomation instead of SikuliX OCR feature.

In order to compensate for the weakness of SikuliX, using another method is a quick solution.
Here is an example of reading the display content of the calculator application.
http://masuo.doorblog.jp/archives/51795367.html

Try UIAutomationSpy to get content inside the popup. If this tool find something inside the popup, there is hope.
You can download UIAutomation PowerShell Extensions here.
https://uiautomation.codeplex.com/

Can you help with this problem?

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

To post a message you must log in.