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 Cross browser testing? Does UFT support it?
how to test Web application using QTP software
Generic function to search for the unique link in webtable and click on it
how to acess a test in RSA?
How many types of object repository in qtp?
How to test fly out menu in qtp?
What is the descriptive programming?
write a script to verify the image path(src property) of the images which are in web pages.
I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.
What are the types of object repositories? Which one is you using?
What is standalone database?
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
How you calling actions in qtp?
How to export quicktest professional (qtp) results to an .xls file?
Analyzing the checpoint results?