Hi ,
Use Global variable .
Declare a variable in vbs as Public.
*Global.VBs*
**
*Public sLink.*
In ExecuteAction
*sLink=DataTable("LinkColumnName","SheetName")*
*Call ClickAction
*
*sLink=DataTable("LinkColumnName1","SheetName")*
*Call ClickAction*
**
**
*If you have multiple link to click then put all the links in one excel
column separated by ,*
*then use below logic.*
**
*sAllLink=SPLIT(DataTable("LinkColumnName","SheetName"),",")*
**
*for i=0 to UBound(sAllLink)*
* sLink=sAllLink(i)
Call ClickAction
Next
*
**
*Regards,*
*Kishore
* On Thu, Jan 15, 2009 at 5:03 PM, mabobine <[email protected]> wrote:
>
> Hi folks,
>
> I have two Actions say ExecuteAction and ClickAction
>
> ExecuteAction;
>
> calls ClickAction
>
> ClickAction:
>
> click on the hyperlink e.g. Browser("ABC").Page("XYZ").Link
> ("LINK-1").Click
>
> Problem statement:
>
> I want to pass parameter to the ClickAction through ExecuteAction so
> that I can click on LINK-2, LINK-3, or any link what i want.
>
> I need solution for getting values from a variable as well as data
> table.
>
> Regards.
>
>
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---