We are trying a stuff where we need to pass variable value while selecting list items and while check point.
We have stored object values (using GetRoproperty) to a variable. We want pass this variable to a function like .Select () & .Check Checkpoint()
Please have a code below.
Var1 = Browser("obj").Page("Obj").WebEdit(obj).GetRo Propety("Value)
Msgbox " Value is =" & Var1
'I am able to get the value as "Value is = Kiran" from the object
'Now i want to pass this variable to select iten from list and also for check point
I want pass Var1 value to select and to check the text. But i am getting error when i am passing variable.
Can we pass variables to function's ? if yes please tell me how.
------------------------------------ Moderator's Comment: I removed the "screaming" (the "***") chars from the title. Please follow the forum guidelines which prohibit this type of synatax in future postings.
You need not use the '&' sign while passing them as variables.
Your last two statements should read -
Browser("obj").Page("obj").Webedit("obj").check checkpoint Var1