GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 665 of 674    Print  
Get Value from Combo
How to write descriptive programming for getting value from Combo for QTP 10.0?


  
Total Answers and Comments: 3 Last Update: November 19, 2009     Asked by: QTPbeginner 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 08, 2009 05:45:12   #1  
facepiyush Member Since: September 2009   Contribution: 1    

RE: Get Value from Combo
Browser( title: Browser title ).Page( title: Page Title ).WebList( html id: value ).Select Value name from dropdown
 
Is this answer useful? Yes | No
October 06, 2009 03:14:10   #2  
deepaksporty Member Since: September 2007   Contribution: 27    

RE: Get Value from Combo
For every combo box there is a method "Getcontent" which you can use to get the values of the drop box. For e.g

msgbox Window("Flight Reservation").WinComboBox("Fly From:").GetContent

In this example of classic Flight Reservation demo application I have clicked on "Fly From" to add this object to our repository and then I have used "GetContent" method to get all the values in the combo box.

 
Is this answer useful? Yes | No
November 19, 2009 02:24:27   #3  
rajaembees Member Since: November 2009   Contribution: 2    

RE: Get Value from Combo
We can also use 'getselection" method for combobox.

a browser("a").page("b').webList("c").getselection /* getselection will be used to get the selected value of the combo box */

msgbox a

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape