Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserting variable values into Descriptive Programming Functions
#1
Not Solved
Hello All,
I'm trying to use a general function in my function library to click links.  I used variables to define property values.  The values for the link properties are coming from the same row as my Teststeps in the Excel file from columns IP1 and IP2.  However, when the clickLink function is called the second time it's still using the previous values ie. not pulling values from current Teststep row.

Some columns I could use as identifiers are TSID, Keywords, IP1, IP2

I would really appreciate any help fixing this!

Function Library Code:

Code:
Function clickLink(dData, dData2)
   dData=datatable.Value("IP1","dTeststeps")
   dData2=datatable.Value("IP2","dTeststeps")
   Browser("micclass:=Browser").Page("micclass:=Page").Link("name:="&dData,"html tag:=A", "text:="&dData2).Click
End Function

Main Code Call from Select/Case:

Code:
Case "clickLink"
dData=datatable.Value("IP1","dTeststeps")
dData2=datatable.Value("IP2","dTeststeps")
Call clickLink(dData, dData2)

Thanks in advance,
Scott K.
Reply


Messages In This Thread
Inserting variable values into Descriptive Programming Functions - by eske99 - 10-30-2015, 08:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic descriptive Programming issue in Terminal Emulator cprasad 1 1,749 04-25-2019, 08:17 PM
Last Post: Ankur
  UFT Tool support with Descriptive programming laks 1 1,637 07-05-2018, 05:31 PM
Last Post: Ankur
  UFT Descriptive Programming objects not identified in a secure & private intranet env bugfinder2 1 1,670 06-07-2017, 01:41 PM
Last Post: Ankur
  UFT descriptive programming Browser("creationtime:=-1") not always working SOUMYADEEP 0 2,897 01-20-2017, 01:53 AM
Last Post: SOUMYADEEP
  Using static descriptive programming how to count no. of objects on any webpage alpha1 4 6,730 08-11-2015, 08:48 PM
Last Post: kotaramamohana

Forum Jump:


Users browsing this thread: 1 Guest(s)