Pages and Frames adding _1, _2, _3... - 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: Pages and Frames adding _1, _2, _3... (/Thread-Pages-and-Frames-adding-1-2-3) |
Pages and Frames adding _1, _2, _3... - zunebuggy - 05-16-2017 So I am doing much of my scripting manually as opposed to Record and Playback. I am testing a website created with a third party app and the objects are not quite as straightforward as other sites I have tested. I use Object Spy a lot and then go in an rename my objects and turn off Smart ID and this seems to work well with this site. As I navigate through the objects in this web app, I am doing multiple runs to try my code. and if I see a new object I need to learn, I will use Object Spy. My Browser always has the same name but I find that my Page (for example Browser("MyBrowser").Page("MyPage") ). NOTE MyBrowser and MyPage are not my real browser and page names. As I am going along, MyPage will have Frames such as Browser("MyBrowser").Page("MyPage").Frame("Frame") but next time I use Object Spy the next object will be in Browser("MyBrowser").Page("MyPage_1"), Browser("MyBrowser").Page("MyPage_2"), etc. and sometimes it will even show up as Browser("MyBrowser").Page("MyPage").Frame("Frame_1") or Browser("MyBrowser").Page("MyPage_3").Frame("Frame_1") Is this a setting I have turned on? Why is it doing this? It doesn't seem to affect the run until I load and run another script and come back to this previous script and run it and the object is not found. I am sure I have a checkbox in the settings causing this. Can anyone tell me what it is? Thank you, Zune RE: Pages and Frames adding _1, _2, _3... - Vichu M J - 05-30-2017 Hi Zune Try changing the Page/Frame Options appropriately from the below. Page/Frame options is available at Tools --> Options --> GUI testing. Under GUI Testing, Web --> Page/Frame options. Hope this helps |