11-30-2011, 11:26 AM
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.
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.
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.