Micro Focus QTP (UFT) Forums
Handling tabout in QTP - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Handling tabout in QTP (/Thread-Handling-tabout-in-QTP)



Handling tabout in QTP - ra.dineshkumar@gmail.com - 10-16-2013

Hi Team,

I would really need you help on the below scenario:

Scenario: There are 2 webedit fields (Address1 and Address 2) in the application, If you enter something in Address1 and tab out, Address 2 will appear to enter.

Question: How to handle this tabout action in QTP… I tried the below but received the run time error "Object does not support this property…..":
Browser().page().WebEdit().Type micTab

Would really appreciate if someone helps me. Thanks in advance


RE: Handling tabout in QTP - basanth27 - 10-17-2013

Probably "SendKeys" is the keyword you should be looking for.

Search and learn about "SendKeys" and that might help.


RE: Handling tabout in QTP - ra.dineshkumar@gmail.com - 10-17-2013

Hi,

Thanks for your email. Even I tried Sendkeys method to handle this but no luck, neither displayed error message nor any action by QTP.

The below code which tried:

Code:
Dim strInputKey
strInputKey = "{TAB}"
Set objWsh = CreateObject("WScript.Shell")
objWsh.AppActivate "Payment"
Browser("Payment").Page("Payment").WebEdit("payTranSenderCorrRefLi").Set "Address1"
Browser("Payment").Page("Payment").WebEdit("payTranSenderCorrRefLi").Click
objWsh.SendKeys strInputKey

Appreciate your help. Thanks much.