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
Brief the process of testing with UFT?
How software tester can use constants and variables in scripts?
Where you are storing your script?
Tell me one scenario, the complex functionality you have automated in your project?
When using descriptive programming?
How can get count of list box?
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?
Why is action split used by qtp?
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)?
banking domain description for software tester for interview
what is the difference between IE & Netscape in web testing on a log in page
What is qtpro? What is quick test pro? What is a quick test professional?
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.