Answer Posted / kalyan
Using strcomp function we can check the spelings of a string.
-----------CODE---------------------
Set browobj=createobject("internetexplorer.application")
browobj.visible=true
browobj.navigate"www.yahoomail.com"
wait(5)
Dim a,b
b="Signing up is easy."
a=Browser("name:=Yahoo! Mail: The best web-based
email!").Page("title:=Yahoo! Mail: The best web-based
email!").WebElement("innertext:=Signing up is
easy.").GetROProperty("innertext")
msgbox a
c=StrComp(a,b)
MsgBox c
If c<>0 Then
reporter.ReportEvent 1,"Stringcomparision","strings are not
equal"
else
reporter.ReportEvent 0,"Stringcomparision","strings are
equal"
End If
Any doubts....mail to-------mskalyan.smile@gmail.com
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the syntax to call one action in another?
If I give some thousand tests to execute in two days what do you do?
How to test login module with different username and password by using data driven testing in QTP?
What is TOM in QTP?
What are the benefits of quick test pro(qtp)?
Difference between copy to action and call to action?
what is error and fault in terms of software quality?
In qtp, explain what is crypt object
what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?
How can I check if a environment variable exist or not?
How to record application running on the Virtual machine?
How many types of recording modes in qtp?
how to evalute defects in QTP script?
How many ways we can parameterize data in quicktest professional?
What is contained in the object repository?