Not able to type on the textbox of the app
Home › Forums › Ask Expert › Not able to type on the textbox of the app
- This topic has 5 replies, 2 voices, and was last updated 7 years ago by Valentin ZAP.
-
AuthorPosts
-
May 2, 2017 at 7:26 am #31066Leidz BigayParticipant
Hi Zaptest Team,
I am encountering a problem when trying to type the username and password to the app’s textbox it is not able to type the value.
Its able to click on the textbox but it doesn’t seem to be able to type inside it.
Could you please help me resolve the problem and let me know what could possibly be the reason why it is failing to type inside the textbox.
I have attached the zaptest file.Thank you
Attachments:May 2, 2017 at 11:53 am #31067Valentin ZAPKeymasterGood morning, Leidzb!
In the attached script we have found 2 inputs:
- At the login Page (LogIn View)
- At the Connect Page (Connect view)
Where exactly do you have this problem? Second view looks good, but at the first one you should use “Relative” objects for typing Login and Password (script is attached).
Also if you use different DPI settings, you also should set “Scalability” option to “Parent Size”. Default is “None”.
Let us know if you still have this issue.
Thank you,
ZAPTEST TeamAttachments:May 2, 2017 at 1:13 pm #31070Leidz BigayParticipantHi AndreySh,
Thank you for the quick response.
The login page is working fine but I have fixed it as you said.
I am having problems in the Connect page, I have already set the Scalability” option to “Parent Size” but zaptest is still not able to type inside the textbox (Username, Password in the Connect page)I have attached the updated zaptest file
Attachments:May 2, 2017 at 1:59 pm #31073Valentin ZAPKeymasterHi leidzb!
Some applications (views) could block emulated system input methods, but if the first screen works very well, the second screen should work. Is it possible to get access to your application for our RnD team to check and resolve this issue?
As workaround you could try to use:
- Zap.Keyboard methods: KeyDown/KeyPress/KeyUp. Please check, is it possible to type using those commands after clicking to the field. Those methods could type only one symbol, but it’s possible to enhance this behaviour
- Use system clipboard: Zap.SetClipboard -> Right Mouse Click -> Paste
Thank you,
ZAPTEST TeamMay 4, 2017 at 6:09 am #31075Leidz BigayParticipantHi AndreySh,
I have tried the following work-arounds below, but none seemed to work for our app.
Workaround 1:
click on textbox
hold keyboard key: kWorkaround 2:
Set clipboard “k”
Click Textbox
Press on keyboard: ctrl + vWorkaround 3:
Click on textbox
Press k on keyboardWorkaround 4:
Click on textbox
Type kWorkaround 5:
Type k directly on textboxI have attached the zaptest file together with a screen recording.
Let me know if you have any advice on this issue.
The screen recording starts on where the issue is being found
(‘Start of Video Recording’ comment in the zaptest file)Thanks for the help.
Attachments:May 4, 2017 at 9:43 pm #31079Valentin ZAPKeymasterCould you try this workaround which uses clipboard (ZAPTEST script is attached):
' Set Clipboard
Zap.SetClipboard "login"
' Make Right Mouse Click at the textbox
Application("SecurEasy").View("Connect").Object("lblConnectUserName").Object("tbConnectUserName").RightClick
' Select "paste" menu item
' We have created virtual object which will use OCR engine
Application("SecurEasy").View("Connect").Object("paste").Click
Thank you,
ZAPTEST TeamAttachments: -
AuthorPosts
- You must be logged in to reply to this topic.