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
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
Can we Test Welcome Screens and Process Images with QTP
how will load the object during runtime?
Get the count of files of similar types from a folder.
Explain actions in qtp ?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
Can any suggest me what is exposure testing?
What are the views available in qtp?
I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance
explain keyword driven framework with banking domain?
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
How many types of parameters are there?
Explain the use of action split in qtp?
what is run-time data?