Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Syntax with descriptive programming
#9
Solved: 11 Years, 4 Months, 1 Week ago
@martinshort

Try the below code. You will have to create a description object for link type. And inside the loop u will have to change the index property.

Code:
'Set parent object till the frame
Set oParent=Browser("Browser").Page("Martin Short CanopiusORSA").Frame("Frame")

'Create a description for link
Set objLinkDescription=Description.Create
objLinkDescription("micClass").value="Link"
objLinkDescription("name").value="Lloyds Submission"

'Get the total count
intCount=objLinkDescription.Count

'Run a loop from index 0 till the count
For intIndex=0 to intCount
    'assign index value at run time in loop
    objLinkDescription("index").value=intIndex
    'click on the link
    oParent.Link(objLinkDescription).Click
    msgbox "Click successful"
Next

'Release the object
Set objLinkDescription=Nothing

Let me know if you need more help.

Regards,
Ankesh
Reply


Messages In This Thread
RE: Syntax with descriptive programming - by Ankesh - 05-15-2013, 06:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic descriptive Programming issue in Terminal Emulator cprasad 1 1,959 04-25-2019, 08:17 PM
Last Post: Ankur
  UFT Tool support with Descriptive programming laks 1 1,803 07-05-2018, 05:31 PM
Last Post: Ankur
  UFT Descriptive Programming objects not identified in a secure & private intranet env bugfinder2 1 1,840 06-07-2017, 01:41 PM
Last Post: Ankur
  UFT descriptive programming Browser("creationtime:=-1") not always working SOUMYADEEP 0 3,095 01-20-2017, 01:53 AM
Last Post: SOUMYADEEP
  Inserting variable values into Descriptive Programming Functions eske99 2 3,520 12-18-2015, 01:47 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)