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


Messages In This Thread
RE: How to write a code for Nested child objects - by PrabhatN - 11-30-2011, 11:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,079 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  Driver Script to control child scripts sumanhyd 1 2,980 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,595 08-20-2015, 11:39 PM
Last Post: ADITI1992
  Child object shwetakondekar 0 2,048 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,459 09-02-2014, 10:01 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)