Micro Focus QTP (UFT) Forums
Regular Expression for Parameter - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Regular Expression for Parameter (/Thread-Regular-Expression-for-Parameter)



Regular Expression for Parameter - GOODYF9 - 02-22-2010

Hi,

I have a scenario where I have to get the OutputText and Use that OutputText from one TestScript as input to innertext for other TestScript For Ex:
Code:
Link_N = Parameter("Link_Name")
Browser.Page.Link("innertext:="&Link_N)
if the Link_N doesnot contain any special character I'm able to click the link but when spl character is in the link the script fails.I dont have indepth knowledge in Reg Exp..

let me explain you in depth

In a page I have several links depend on the Output Text Value (Which will be the Inner Text of any of the links ) ,I have to click the link ..
Code:
Browser(A).page(A).OutPut CheckPoint("Link_Name")

Link_N = parameter("Link_Name")

Browser(A).page(B).Link("Innertext:="&Link_N").click

Hope you got me ...I appreciate if anyone has solution


RE: Regular Expression for Parameter - surya_7mar - 10-05-2010

We need to convert all the special characters of the parameter Link_N before using click on, i will send you the code