Micro Focus QTP (UFT) Forums
QTP not identifying the TextArea and Buttons properly. - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: QTP not identifying the TextArea and Buttons properly. (/Thread-QTP-not-identifying-the-TextArea-and-Buttons-properly)



QTP not identifying the TextArea and Buttons properly. - vibhakhushi - 02-22-2011

hello, i have automated AIR application. The script goes like this...

Code:
Window("VLE").Activate
[color=#00BFFF]Window("VLE").Click 375,170
Window("ViLE").AirApplication("iLM").AirForm("form").AirTextArea("User ID::username").SelectText 0,0
Window("VLE").Type "user"[/color]
Window("VLE").Click 384,201
Window("VLE").AirApplication("iLM").AirForm("form").AirTextArea("User ID::username").Input "user"
Window("VLE").AirApplication("iLM").AirForm("form").AirTextArea("Password::password").SelectText 0,0
Window("VLE").Type "user"
Window("VLE").Click 382,279
Window("VLE").AirApplication("iLM").AirForm("form").AirTextArea("Password::password").Input "user"
Window("VLE").AirApplication("iLM").AirButton("Login").Click
Window("VLE").Click 956,35

This is the VB Script generated. Although its identifying the TextArea, its identifying the click for the TextArea seperately. Can somebody please explain me why its happening so? When I re-run the same script, it gets hanged at the line
Code:
"Window("VLE").AirApplication("iLM").AirForm("form").AirTextArea("Password::password").Input "user""

It inputs UserID and password properly. After that QTP hangs.

Thanks in advance. Waiting for a reply.