Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I Would like to click on .Bat file that opens 2 URLs in different browsers (Firefox and IE) then click on button located on the each page (ex. Submit or login buttons) .

This is what I got so far in the bat file:

start iexplore https://www.yahoo.com    
start firefox https://www.gmail.com
share|improve this question

1 Answer 1

As mentioned, .bat files aren't the best way to scrape or automate websites. Depending on what you are trying to do, you might want to take a look at GreaseMonkey; a script engine extension for firefox. Another popular choice is to use python, which has multiple libraries available to parse html/xml (e.g. beautifulsoup), in addition to easy web interfaces to request and receive. And if the goal is just to deal with email, these email services can return XML. For example, in gmail, to check your current status, you can issue this URL:

https://username:password@mail.google.com/gmail/feed/atom

Where, username and password is your actual values. Also note the https instead of http.

share|improve this answer
    
Perhaps even an AutoHotKey/AutoIt script depending on requirements... –  Karan Jan 23 '13 at 15:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.