Solved

VBS script for Browswer Automation

Posted on 2014-03-09
1
218 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article we want to have a look at the directory attributes which are used by Microsoft to store the so called Security Identifiers (SID). These SIDs plays an important role in delegating and granting permissions and in authentication of trus…
Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

729 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