02-28-2013, 05:49 PM
(This post was last modified: 02-28-2013, 05:56 PM by pradeep singh.)
As per my understanding ...instead of direct putting no. in dp ,you are fetching from datatable....
If I am right then,make a function and pass parameter fetching value from datatable and in that function you append '\' to all special characters .
For ex:
Then write this as :
Let me know ,Is it worked for you or not?
If I am right then,make a function and pass parameter fetching value from datatable and in that function you append '\' to all special characters .
For ex:
Code:
p=DataTable("Number", dtGlobalSheet)
pchanged=fnReplacingSpecialChars(p)
Function fnReplacingSpecialChars(p)
p=Replace(p, "(", "\(",,,1)
p=Replace(p,"+","\+",,,1)
p=Replace(p, ")", "\)",,,1)
fnReplacingSpecialChars=p
End Function
Then write this as :
Code:
browser("name:=.*").page("title:=.*").Link("html tag:=A","class:=ctc f13","text:="& pchanged).Exist(0)
Let me know ,Is it worked for you or not?