Hi,
I have a issue with passing data driven values to xpath's. Lets take a instance such as below
ListItem item2 = combo2.FindSingle<ListItem>("list/listitem[@accessiblename='AUSTRALIA']");
If i like to pass 'AUSTRALIA' as variable and make it as data driven. How could it be done.
Regards,
AK
Passing data driven values to xpath
Re: Passing data driven values to xpath
Set the variable you want then include it in the xpath...
Code: Select all
string strMyVar = "AUSTRALIA";
ListItem item2 = combo2.FindSingle<ListItem>("list/listitem[@accessiblename='" + strMyVar + "']");
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
-
- Posts: 6
- Joined: Tue Jul 09, 2013 4:23 am
Re: Passing data driven values to xpath
Cool. It works
Regards,
Anantha Krishnan.K
Regards,
Anantha Krishnan.K