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...



how to handle the textboxes where in it should take the sum like ex:: while posting a question in ..

Answer / 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

More QTP Interview Questions

why we use sendkey method in qtp?

2 Answers   ABC,


1)Difference Between Value & RawValue?

2 Answers   Wipro, Zensar,


What is the limitation to XML Checkpoints?

1 Answers  


What is an optional step in qtp ?

0 Answers  


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

0 Answers  






How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined

0 Answers   Livetek,


How to retrive data from a data table which is in 3rd row,4th column and place it in main script..like retrive name,date from data table..write script for this.

11 Answers   Thatavarti Technologies,


How to capture the tooltip of webelement,if there are two values displayed in tooltip of webelement?

1 Answers  


what is compiled module?

1 Answers  


how to do regression testing in qtp? plz give ans with examples

6 Answers   TCS,


What is keyword view and Expert view in QTP?

9 Answers   Ordain Solutions,


Explain in brief about the qtp automation object model (aom).

0 Answers  


Categories