Answer Posted / jayalakshmi
Function to calculate the length of characters in a word -
Function countChar(st)/*Vbscript Function
charLength = Length(st)
End Function
Assume above function countChar is written in VBscript, now
you are getting the text from the Application and calling
the Vbscript file and gets the length of the characters in
the word
Dim textValue
textValue= Browser("Browser Name").Page("Page Name").Frame
("mainFrame_5").WebElement("12").GetROProperty("innertext")
executefile "\*.*\countChar(textValue)" /*calling the
Vbscript file
textlength = charLength /*getting the text length
Is This Answer Correct ? | 14 Yes | 12 No |
Post New Answer View All Answers
How you can decide which type of object repository you have to use?
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
What is ObjectParamater?
Give me some real time point of way where exactly we can conduct audits?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
Explain the features of quick test pro(qtp)?
how to acess a test in RSA?
can any one say that where we can download the QTP trail version ??????????
Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!
What is Test Fusion Report in QTP?
What is a quick test professional?
What are the types of object repositories? Which one is you are using?
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
in a web page How to check and display a particular word from a paragraph?