Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to write a code for Nested child objects
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
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
--- This one is working

But after that Create Activity --> Inbound is not working.


Please find the screen shot as attachment


Attached Files
.doc   Image.doc (Size: 24.5 KB / Downloads: 62)
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
Kiran,
In Menu, Check whether mouseover is working or not. If it work, can we use for create activity and click Inbound

Regards,
Arul
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
[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
Reply
#4
Solved: 10 Years, 8 Months, 4 Weeks ago
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")
Browser("SAP NetWeaver Portal").Page("SAP NetWeaver Portal").Frame("TestButton").Link("Follow-Up").Click
WShell.Sendkeys "{DOWN}"
WShell.Sendkeys "{RIGHT}"
WShell.Sendkeys "{ENTER}"

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.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,056 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  Driver Script to control child scripts sumanhyd 1 2,952 07-26-2016, 07:06 PM
Last Post: Ankesh
  UFT 12.50 unable to recognize child objects from a Dialog Class in Firefox jesusisaac 1 3,571 08-20-2015, 11:39 PM
Last Post: ADITI1992
  Child object shwetakondekar 0 2,042 07-01-2015, 03:28 PM
Last Post: shwetakondekar
  How to write a script for fly out menus (Parent - Child - Sub Child) rajkumarsm 3 4,447 09-02-2014, 10:01 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)