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

What are the different types of recording modes in qtp? Which will be used when?

553


suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

1482


How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

1531


I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)

1444


What is the use of sendkeys and what are send keys

1943






Describe how Smart Identification is used

1689


What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

1711


give me an example where u used good judgement and logic in solving a problem

3346


What is use of object spy?

605


How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box

1820


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1321


I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible

1440


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

2852


i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api

1486


How the smart identification is used in real time?Please explain with an example

1541