How to catch the TOol Tip Dyanamically changing values using
the qtp script by Descriptive Programming
Scenario:
========
1. when i press the submit button
2. The Tool tip first shows the value "Validating...."
3. Next the value is changed in tooltip "Logging....."
------
And the class is webElement
SO , how can i catch both values During Run time using Dp

Answer Posted / aiswaryan

Dim tooltiparr(1)
tooltipvalue=Browser().Page().WEObject.Getroproperty
("alt")'Edit this
tooltiparr(0)=tooltipvalue
For i = 1 to 10
Do Until ObjectX.Exist(1)'Edit this
tooltipvalue=Browser().Page().WEObject.Getroproperty
("alt")'Edit this
If tooltipvalue <> tooltiparr(0) Then
tooltiparr(1)=tooltipvalue
Exit For
End If
Loop
Next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Brief the process of testing with UFT?

618


How software tester can use constants and variables in scripts?

1681


Where you are storing your script?

627


Tell me one scenario, the complex functionality you have automated in your project?

1471


When using descriptive programming?

628






How can get count of list box?

630


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?

1431


Why is action split used by qtp?

551


how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?

1410


banking domain description for software tester for interview

3458


what is the difference between IE & Netscape in web testing on a log in page

1782


What is qtpro? What is quick test pro? What is a quick test professional?

579


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

1377


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

1433


what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

1634