how to do spell check in QTP?
reply please

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


Please Help Members By Posting Answers For Below Questions

explain how to write vb script in qtp?when will you write own script?

1859


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?

1525


What is the file extension of the code file and object repository file in QTP?

605


how to find that tools work well with your existing system?

1406


how to create flat file datasubmission in qtp

1909






how to do the batch testing in test director using manual testing procedure?

1778


What are the five challenges you faced in QTP?

2754


What is the recovery scenario in qtp?

577


what is supply chain management?

2092


Explain the features of quick test pro(qtp)?

581


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

23940


How do you convert manual test cases to automated test cases?

583


Where you get the run time data table?

589


How to run a test using quicktest professional?

533


Whats the realtime QTP testing process

1992