hi in QTP 8.2 in the edit box has text like "raju want
married" . i want to check "want" is their in the text
or not ?
Answer Posted / srinath
One method is
a="Raju want to marry"
b="want"
if instr(1,a,b) then
msgbox("Exists")
else
msgbox("Does not exists")
end if
another method is
use regular expression. this is a bit lengthy
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How to capture all the data of a webtable, weblist and combolist using QTP?
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
what is the advantages and disadvantages of using functions instead of re usable actions
what are the mandatory properties for a tex boxc (scenario?)
how many maximum number of virtual users we can create?
How would you export a script from one pc to another in qtp?
What are the benefits of quick test pro(qtp)?
How QA specialist can identify when programmatic descriptions are useful?
What is difference in global and action sheet in qtp?
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
How do you check ticket cost and ticket number in flight application?
Is it possible to call from one action to another action in qtp?
how can we compare descriptive programing with a regular expression