Question
TATA Consultancy Services Ltd
IN
Last activity: 16 Oct 2018 12:03 EDT
How to send keys to a web page textbox using Send keys.
I want to write a String variable into a webpage textbox, character by character. To do this I am thinking to use Sendkeys method. But I don't know where the method is available. Can anyone help me in this?
***Edited by Moderator: Marissa to update categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
ANZ
IN
While interrogating uncheck "create global webpage" check box and then interrogate. You would see frame control for the text box.
Pegasystems Inc.
US
The SendKeys method is available on the frame level control. In automation, you will need to first focus on the textbox then send keys to the frame control.
This PDN post also explains the process:
https://collaborate.pega.com/question/how-send-keys-web-page-textbox-using-send-keys
TATA Consultancy Services Ltd
IN
Hi Vegam, Thank you for the reply. Can u post the PDN link please. The link you previously posted, leads me back to my question post.
Pegasystems Inc.
US
Hello,
This should be the correct link: https://collaborate.pega.com/question/how-do-i-send-keystroke-html-textbox-using-openspan
TATA Consultancy Services Ltd
IN
Can you explain what is frame level control? I tried with all the parent element of my Textbox (1_SyCode_Txt in my case). I have uploaded the object explorer screenshot of my project.
Accepted Solution
ANZ
IN
While interrogating uncheck "create global webpage" check box and then interrogate. You would see frame control for the text box.
TATA Consultancy Services Ltd
IN
Thankyou Manas, I got it after unchecking "create global webpage". I was able to send keys to the frame control.
Accenture
IN
Hi Kirubhashree,
Could you pls share the pic how did you you use send keys and object explorer pic, because i have tried it , sometimes it's working but sometimes it's not working.