how to handle the textboxes where in it should take the sum
like ex:: while posting a question in this site it will for
what is the result of 6+3=__ where in we have to enter
manually 9 and click on submit... but how to handle these
cases in qtp.. can someone plz help me out wid dis...

Answer Posted / ashok kumar

...
Values = Trim(Browser("").Page("").WebElement("html
tag:=B").GetROProperty("intertext")) 'Remove extra space
numbers = Split( (Left (values,Len( values)-1)),"+") 'split
two numbers
Browser("").Page("").WebEdit("tqa").Set
CInt(Trim(numbers(0))) + CInt(Trim(numbers(1)))
...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What phases are involved in testing an application in qtp?

558


How is test case write?

574


how to evalute defects in QTP script?

1484


Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1371


How to record application running on the Virtual machine?

636






Difference between action & Reusable action?

683


How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..

1619


Explain the parameter in qtp?

575


Diff b/w Health care domain and Banking Domain?

4211


What are the challenges you faced during you entire life automation ?

1001


What is data driver in qtp? Where we use it?

561


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

3760


What is the syntax to call one script from another?

536


Whether qtp 9.0 supports Test director8.0

2116


i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

1655