Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiline text validaion
#1
Not Solved
Hi All,
i have a scenario like "i have to validate the multiline text message .it is displaying in a POP up".
please respond as early as possible.

Code:
myString1=Browser("Login").Dialog("Message from webpage").Static("objectName").GetROProperty("text")
'myString2="The selected XXX is not allowed to receive XXXXX materials."+Chr(13) & Chr(10)+"You can not proceed with this order using this XXXX"
if myString1=myString2 Then

msgbox "True"

End if
Thanks,
Murali.
Reply
#2
Not Solved
Option 1:
Use the regular expression object to validate the content.
Option 2:
Define the "objectName" property with the expected text, and use the regular expression in the place of "X"s'. And then go with exist, if true pass else fail.

Option 2 is simple and easy.
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Read text from text file and save it into a variable in qtp arpan 3 12,957 06-19-2013, 08:34 PM
Last Post: arpan
  Need to compare two text files - ignoring some text nelly27281 2 4,577 09-09-2012, 12:09 PM
Last Post: freeboynil
  Finding specific text in a text string janriis 3 5,504 10-08-2010, 04:00 PM
Last Post: KavitaPriyaCR
  MultiLine comment in vb script sunilpatro1985 2 18,308 03-18-2009, 03:58 PM
Last Post: MVChowdary
  Copy content from a text file & paste it in text area in a web page qtpnewbie1 2 6,804 12-05-2008, 08:39 PM
Last Post: qtpnewbie1

Forum Jump:


Users browsing this thread: 1 Guest(s)