Micro Focus QTP (UFT) Forums
How to tell QTP to ignore "quote" thing and dont evaluate it when using Descriptive P - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to tell QTP to ignore "quote" thing and dont evaluate it when using Descriptive P (/Thread-How-to-tell-QTP-to-ignore-quote-thing-and-dont-evaluate-it-when-using-Descriptive-P)



How to tell QTP to ignore "quote" thing and dont evaluate it when using Descriptive P - chong67 - 08-21-2012

How do I tell QTP to ignore QUOTE which is this " (symbol) when using Descriptive Programing?

See this example below:

Code:
Browser("name:=Delta - Book a flight").Page("title:=Delta - Book a flight").WebButton("html id:=continue_button", "outerhtml:=<INPUT id=continue_button class="button right" onclick=document.BusinessPersonalTravelForm.submit() value=Continue type=button name=continue_button>").Click

===========

As you can see above that " ... _button class="button right" has the " on it and get the QTP confused.

BTW, I have no choice but to use OUTERHTML:=

I am sure there is a way to tell it to ignore it.

Please help.

Thanks so much.


RE: How to tell QTP to ignore "quote" thing and dont evaluate it using DP - Ankesh - 08-21-2012

you can use escape character to see if this works.

Code:
INPUT id=continue_button class=\"button right\"

Regards,
Ankesh