Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
text exists or not
#1
Not Solved
Hi I need to check existence of a particular text in a web area

for eg: the text i want to search is "world"

Can anyone please help me with this?

can this be achieved through text checkpoint?
Reply
#2
Not Solved
Get the text of the object and use Instr function to check for the particular text u r looking for.
Plz refer to QTP help to get the syntax of Instr function.

Regards,
Ankesh

Reply
#3
Not Solved
Yes you can use Text checkpoint
Reply
#4
Not Solved
Use the text checkpoint.

Second option get the object name where this text is displayed and get the run time properties and verify whether it is matching to your expecting string.

Thx

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,101 06-19-2013, 08:34 PM
Last Post: arpan
  Need to compare two text files - ignoring some text nelly27281 2 4,376 09-09-2012, 12:09 PM
Last Post: freeboynil
  Finding specific text in a text string janriis 3 5,184 10-08-2010, 04:00 PM
Last Post: KavitaPriyaCR
  how to check if selection in menu exists.. Anil Kumar 1 3,306 10-15-2009, 08:45 PM
Last Post: jsknight1969
  Copy content from a text file & paste it in text area in a web page qtpnewbie1 2 6,465 12-05-2008, 08:39 PM
Last Post: qtpnewbie1

Forum Jump:


Users browsing this thread: 1 Guest(s)