Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I’ve written a script that allows me to login into a website automatically, but I am unable to export a file via the script because of the way the website is designed (It is just outside of my programming abilities).

Essentially this is what my script will do:

1. Login to the website with my credentials
2. Export the Excel CSV file and save it to a specified location with a specified name (This is where I am stuck)
3. Once downloaded, a VBA macro will run to add formulas and formatting
4. Then email the file to a specified distribution group at a specified time every weekday.

Item 1, 3 and 4 are already complete. I just need number 2.

Essentially, the website has a share button using CSS. When it is pressed, it give the option to export an excel file. When the "Export file" button is pressed, it opens a form with some simple input fields and there is a final "Export" button. There are no ID's associated with these buttons like with the website login form.

The HTML code for the button I want to press primarily is this:

<button class="ss-action"></button>

When pressed, the options are an unordered list:


  • Email Notifications
  • Export


I want to be able to click that Export list item which will then popup the form.

What I have tried:

I have tried everything I can think of. I am just a novice with automating the web.
Posted
Comments
CHill60 12-Apr-16 11:29am    
For the button click have a look at the solution on this post - internet explorer - Clicking buttons in IE with VBScript on CRA website - Stack Overflow[^]
Sergey Alexandrovich Kryukov 12-Apr-16 12:07pm    
Using VBScript means that you cannot use it in Web applications. It can be used almost exclusively in Microsoft browsers; and nearly nobody needs it.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900