http://quicktesthp.blogspot.com

QTP VBScript new series + Interview Question Bank on QTP for enrichment of Knowledge in QTP

This Site has been brought to you by HP Certified Expert of QTP.

Exciting new articles for October:

1) QTP Tip:Deselect all Radio Buttons

2) HP QTP Crypt Object

3)Adding Hyperlinks in Excel Spreadsheet

Best of Luck Friends ! ! !

Expert QTP
expert.qtp@gmail.com

All Articles are Copyright Protected. These are Free for Reading & Personal Use. Reproduction in Any Form without the Permission is Illegal & Strictly Prohibited.

Copyright © 2009 ExpertQTP

Google Search

Friday, June 6, 2008

Passing keyboard inputs to AUT through QTP

This site has been brought to you by an HP certified expert of QTP.

It is my continuous endevour to give the best to my readers.

This article is under updation will be available to you shortly.

ExpertQTP
http://quicktesthp.blogspot.com

Ways to send keyboard input to an application using QTP when it does not record using normal recording

1 comment:

Anonymous said...

Hi,

I have an application with 25 fields(textboxes).On entering data in 5th field and pressing an enter key will automatically populate data in 6th field.

How do i achieve this with QTP.

I used the below code and nothing happened.

CODE:

Browser("Browser").Page("Page").Frame("body").WebEdit("type:=text","name:=InsuranceCode","html tag:=INPUT").Set insurance_code

Set WshShell = CreateObject("WScript.Shell")
Browser("Browser").Page("Page").Frame("body").WebEdit("type:=text","name:=InsuranceCode","html tag:=INPUT").Click
WshShell.SendKeys("ENTER")
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "ENTER"
Set WshShell = Nothing
Wait 2


I tried with submit function and it submitted the whole screen, which is not the desired action.

Could you please help me on this?
thanks
Swami

 
Copyright © 2009 ExpertQTP