Solved

VBS script for Browswer Automation

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Welcome, welcome!  If you are new to the series and haven't been following along, please take a brief moment to review the first three installments: Part 1 (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/A_266-VBScri…
This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now