Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VBS script for Browswer Automation

Posted on 2014-03-09
1
Medium Priority
?
223 Views
Last Modified: 2014-03-18
I'm working on an VB script to automate my web browsing. I figured out how to open the internet explorer, log on, and then click on the necessary objects to navigate. What i'm having trouble with now is my drop down box that I have to select. I can select a static variable from the dropdown but the variables change constantly so it won't work every time.

The way that the ASP web application works is that once I select an item from the dropdown box, I click on a reset link and then the item that I selected from the dropdown box disappears. They are all Date Time variables so it changes all the time.

So I'm trying to figure out how to select the very bottom selection item in the drop down box because that will reset all items and clear my queue. Is this possible? If not how do I loop the process until all the DATE TIME item variables are reset and removed.
dropdownbox.jpg
0
Comment
Question by:Southern_Gentleman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
gdarcan earned 2000 total points
ID: 39916831
Hi;

You should use VBScript's sh.sendkeys method. "sh" is the common object variable for "Wscript.Shell". With this method, you can send keystrokes for example "tab" to switch between input fields, "down arrow" to go end of the list. Just add a "For i=1 to 100" loop to go end of the select list.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question