1. Pls can anyone give me the descriptive programing
script to find the number of edit boxes in a login window
in flights reservation (windows application only not web).
2. Using descriptive programing, how do you handle
changing URLs. Pls anyone, very urgent

Answer Posted / sanu

Try this...

Set obj_edit = description.Create
obj_edit("nativeclass").value = "Edit"
Set EditDesc = dialog("Login").ChildObjects(obj_edit)

msgbox "Number of Edit Fields : "& EditDesc.count

For i = 0 to EditDesc.count - 1
EditDesc1 = (EditDesc(i).getROProperty("Attached Text"))
msgbox EditDesc1

Next

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what r the main attributes of test automation?

1566


1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?

1716


Tell me about qtp?

613


requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how

1589


Why is action split used by qtp?

646






What are the Application Functions available in QTP?

1585


If I give some thousand tests to execute in two days what do you do?

676


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

679


How to recognise the webelement and verifying that webelement is enabled?

1733


Hi.. I want to do parametrization for selecting perticular flighr say XYZ by using local table: criteria: 1.If flight is available msgbox "Flight is available" and then select flight from flight table and click to ok button after that as enter username and ticket no and then stop 2. otherwise msgbox " Flight is not available" and stop Please help me out ..and let me know your responses on dipak.bachhav@gmail.com Regard, Dipak

1738


What are the advantages of parameterization ?

694


How to use transactions in qtp?

636


Where we can use the synchronization?

655


What are the various automation frameworks available in qtp?

607


In the website, the protocol has been changed http: to https what you will do? Tell me your approach?

652