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
hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale
what is the latest version of QTP? Main difference between 9.2 and 10 version
whow much strong on VB and C?
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
when will you do debug your script? and explain that process?
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
How you can write contexts to text file in qtp?
hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company
how to test use the quality control .how to verify the image verification
What is regular expression?
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
What is quick test pro?
Explain in brief about the quicktest professional (qtp) automation object model?