How to Display last item of a Combobox by using QTP?
Answer Posted / chandu
x=Browser("Browser Name").page("PageName").Weblist
("WebListName").GetRoProperty("items count")
Browser("BrowserName").page("PageName").Weblist
("WebListName").Getitem(x)
the above code will select the last item in the list box
| Is This Answer Correct ? | 7 Yes | 5 No |
Post New Answer View All Answers
How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?
What is regular expression?
Which environments are supported by hp qtp?
What is accessibility check point?
When and why to use descriptive programming?
How can i initiate the objects to find uniquely in OR
When to use descriptive programming?
Is it possible to merge two object repository files in qtp?
what is the difference between data driver & data driven and driver script?
Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project
what you mean by artifact,milestone...
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
What is expert view in qtp?
I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?