07-24-2009, 11:25 AM
Hi All,
Please can any body tell me How can I send variable value for HTML property for descriptive programming in QTP.
e.g.
Here i is variable. But when am sending testid as a value to html ID , its throwing me error , I guess there is some string error because of double qoutes. Can any body help me to resolve this problem.
Thanks,
Ritu
Please can any body tell me How can I send variable value for HTML property for descriptive programming in QTP.
e.g.
Code:
Dim testid, i,j
i=1
j = Cstr(i)
testid = "Edit"+j
Browser(browsers).Page(pages).WebButton("html tag:=Input", "html ID:=testid").Click
Here i is variable. But when am sending testid as a value to html ID , its throwing me error , I guess there is some string error because of double qoutes. Can any body help me to resolve this problem.
Thanks,
Ritu