This example from the Script Center may be what you're looking for...

Sub test()
Connect "", stWeb
Go_ "amazon.com"
'Here's my Pause for the dropdown
Pause " All ProductsBooksPopular Musi*<SELECT>#url#@Amazon.com: Welcome"
GetListItem "Toys"
Click "Go<INPUT>#Go#@Amazon.com: Welcome"
End Sub

'Here's the part that really does the work

Sub GetListItem(ItemName As String)
Set e = Web.Selected
            For i = 0 To e.options.length
                If ItemName = e.options(i).innerHTML Then
                    e.selectedIndex = i
'The Go command is optional - use if the act of selecting an item is 'designed 
to navigate to another page, do not use if you are just selecting 'a value and 
clicking on a button or similar
                    'Go_ e.options(i).Value
                                         Exit Sub
                End If
            Next i
End Sub


Chris Ashcraft
Solutions Development Senior Analyst
Ascension Health Information Services
Sacred Heart Health System
P: (850) 416-4578 - F: (850) 416-7392
[cid:[email protected]]
[cid:[email protected]]



From: [email protected] [mailto:[email protected]]
Sent: Tuesday, December 27, 2011 12:22 PM
To: [email protected]
Subject: [talkbws] Web Scripting

How do you populate a combo box?  I am doing a web click on the combo box and 
then trying to key in text but it does not work.

Tonya M. Palinkas
Quest Diagnostics | Sr. Hospital CPU Interface Specialist | 1777 Montreal 
Circle | Tucker, GA  30085 USA | phone +1.678.406.1347 or 1.866.709.0772 opt1, 
ext 1347 | fax +1.484.676.8609| 
[email protected]<mailto:[email protected]>
 | www.QuestDiagnostics.com<http://www.QuestDiagnostics.com>
Please think about resource conservation before you print this message


______________________________________________________________________
The contents of this message, together with any attachments, are intended only 
for the use of the person(s) to which they are addressed and may contain 
confidential and/or privileged information. Further, any medical information 
herein is confidential and protected by law. It is unlawful for unauthorized 
persons to use, review, copy, disclose, or disseminate confidential medical 
information. If you are not the intended recipient, immediately advise the 
sender and delete this message and any attachments. Any distribution, or 
copying of this message, or any attachment, is prohibited.

---  To post a message to this list, send mail to: 
[email protected]<mailto:[email protected]>    You are currently subscribed as: 
[email protected]<mailto:[email protected]>    Unsubscribe in 
the customer center on our website: 
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx


CONFIDENTIALITY NOTICE:
This email message and any accompanying data or files is confidential and may 
contain privileged information intended only for the named recipient(s). If you 
are not the intended recipient(s), you are hereby notified that the 
dissemination, distribution, and or copying of this message is strictly 
prohibited. If you receive this message in error, or are not the named 
recipient(s), please notify the sender at the email address above, delete this 
email from your computer, and destroy any copies in any form immediately. 
Receipt by anyone other than the named recipient(s) is not a waiver of any 
attorney-client, work product, or other applicable privilege.
---  To post a message to this list, send mail to: [email protected]    You are 
currently subscribed as: [email protected]    Unsubscribe in the 
customer center on our website: 
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx   

<<inline: image001.jpg>>

<<inline: image002.jpg>>

Reply via email to