That's a lot more complex than you typically need
Usually you can find <Option> tags for each item inside the combo box
(in the element list from the BWS user interface) and use a simple Click
command to click the desired <Option>
So for a combobox with a bunch of states:
Click "NH<Option>@MyPage"
Thom C. Blackwell
Vice President, Technical Services
Boston Software Systems
(866) 653-5105 ex 807
<http://twitter.com/thomcblackwell> @ThomCBlackwell
www.bossoft.com <http://www.bossoft.com/>
Learn about what we do <http://www.youtube.com/watch?v=Fbjk_4LUZYU>
Please follow us on Facebook
<http://www.facebook.com/pages/Boston-Software-Systems/122739774403349?>
and Twitter! <http://twitter.com/Bossoft>
LEGAL NOTICE Unless expressly stated otherwise, this message is
confidential and may be privileged. It is intended for the addressee(s)
only. Access to this E-mail by anyone else is unauthorized. If you are
not an addressee, any disclosure or copying of the contents of this
E-mail or any action taken (or not taken) in reliance on it is
unauthorized and may be unlawful. If you are not an addressee, please
inform the sender immediately, then delete this message and empty from
your trash.
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, December 27, 2011 1:54 PM
To: Talk
Subject: RE:[talkbws] Web Scripting
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
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] | 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]
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
--- 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
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 <<image003.png>>
<<image004.jpg>>
<<image005.jpg>>
