Print Page | Close Window

How to read from drop down box

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: SilkTest @ OneStopTesting
Forum Discription: SilkTest is an automation tool for testing the functionality of enterprise applications in most versions of Windows, Sun Solaris 9 & 10, and Red Hat Enterprise Linux WS 2.1 & 3.0.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=3573
Printed Date: 04Jan2025 at 1:52am


Topic: How to read from drop down box
Posted By: kismat
Subject: How to read from drop down box
Date Posted: 08Nov2007 at 9:21am
Is there any way i can pick the line from the drop down box which contains the value(int number or text) i m looking for.
 
suppose in drop down box
72 - some text
22 - some text
35 - some text
38 - 39 some text
 
When i am looking for a 34 it needs to pick the line "35 - some text".
 
 
Thanks
 
  



Replies:
Posted By: ram7vasu
Date Posted: 08Jan2008 at 1:28am
INTEGER iIndex
 
STRING sVar
 
iIndex =object.FindItem("xyz")
 
object.select(iIndex)

sVar =object.GetSelItem()  Smile



-------------
RAM SAKSOFT



Print Page | Close Window