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
explain how to write vb script in qtp?when will you write own script?
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
What is the file extension of the code file and object repository file in QTP?
how to find that tools work well with your existing system?
how to create flat file datasubmission in qtp
how to do the batch testing in test director using manual testing procedure?
What are the five challenges you faced in QTP?
What is the recovery scenario in qtp?
what is supply chain management?
Explain the features of quick test pro(qtp)?
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp
How do you convert manual test cases to automated test cases?
Where you get the run time data table?
How to run a test using quicktest professional?
Whats the realtime QTP testing process