![]() |
How to write a code for Nested child objects - 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: How to write a code for Nested child objects (/Thread-How-to-write-a-code-for-Nested-child-objects) |
How to write a code for Nested child objects - kirann14 - 11-29-2011 Hi, I am new to QTP descriptive programming. Can any one please help me to get the solution how to write the code for the below nested child objects. Click on Follow-Up --> Create Activity --> Inbound Here ‘Follow-Up’ is a Link Code: Browser("SAP NetWeaver Portal").Page("SAP NetWeaver Portal").Frame("TestButton").Link("Follow-Up").Click But after that Create Activity --> Inbound is not working. Please find the screen shot as attachment RE: How to write a code for Nested child objects - Arul - 11-30-2011 Kiran, In Menu, Check whether mouseover is working or not. If it work, can we use for create activity and click Inbound Regards, Arul RE: How to write a code for Nested child objects - kirann14 - 11-30-2011 [quote='Arul' pid='18996' dateline='1322623184'] [quote='kirann14' pid='18992' dateline='1322587542'] Kiran, In Menu, Check whether mouseover is working or not. If it work, can we use for create activity and click Inbound Regards, Arul Hi Arul, Thanks for your reply. I tried with the menu options, SAPDROPDOWNMENU also but it is not working. Thanks, Padmaja RE: How to write a code for Nested child objects - PrabhatN - 11-30-2011 Hi Kiran, Looking at the image you have shared, it seems to me that after clicking the "Follow-Up" link, the drop-down menu appears. If you can make use of arrow keys (Up,Down,Right,Next) to navigate to any menu items then following code should help you. Code: Set WShell = CreateObject("WScript.Shell") I presumed that to reach "Create Activity-->Inbound" you need to press down arrow key once, right arrow key once and then Enter. You can modify the code according to your need. |