Micro Focus QTP (UFT) Forums
Testscript - 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: Testscript (/Thread-Testscript)



Testscript - Wigi - 04-23-2014

i am beginner in the QTP, i work now with QTP UFT 11.52. i have this problem. all my Object in Testscript are generate with the same name.and i dont know why.

*********
Code:
Browser("Browser").WinObject("Chrome_WidgetWin_1").Drop 1919,413
Browser("Browser").WinObject("Chrome_WidgetWin_1").Click 853,618
Browser("Browser").WinObject("Chrome_WidgetWin_1").Click 1031,442
Browser("Browser").WinObject("Chrome_WidgetWin_1").Type "Barcelona"
Browser("Browser").WinObject("Chrome_WidgetWin_1").Click 1044,462
Browser("Browser").WinObject("Chrome_WidgetWin_1").Click 1115,467
Browser("Browser").WinObject("Chrome_WidgetWin_1").Click 1244,635
Browser("Browser").WinObject("Chrome_WidgetWin_1").Click 1230,463
Browser("Browser").WinObject("Chrome_WidgetWin_1").Type "12:00"
Browser("Browser").WinObject("Chrome_WidgetWin_1").Click 1116,485
Window("Window").Click 42,53
Browser("Browser").WinObject("Chrome_WidgetWin_1").Click 1112,489
Window("Window").Click 47,34
Browser("Browser").WinObject("Chrome_WidgetWin_1").Click 1234,535

******************

thank you for your Hepl


RE: Testscript - pranikgarg - 04-23-2014

It will be like that only. This is the hierarchy of your component which you want to access.


RE: Testscript - excellentpawan123 - 05-23-2014

All these not not different objects, same object is being again and again. You can check it in object reporsitory