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
Explain calling sub procedure.
What is expert view in qtp?
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
What are the 3 main stages involved in testing with qtp?
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
Explain in brief about the quicktest professional (qtp) automation object model?
Explain the check points in quicktest professional?
Is QTP supports Unix. If yes, then how the test automation is done?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
How do you convert manual test cases to automated test cases?
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
What r the different filters in defect in quality center
What are the various automation frameworks available in qtp?
how to download mercury qtp9.2 ny internet ?