EDIT:
There is a website (called investopedia) that allows you to conduct stock market trades without actually spending money. It is a stock simulator. Here is what I would like to do:
1. Log in to Investopedia
2. Make a trade (select 100 shares of APPL)
3. Execute the trade.
I can do the first 2 using mechanize or selenium. However, the third part messes me up. In order to execute the trade, you must press the "submit order button". When you press the submit order button, you are redirected to another page which tells you your order has been submitted. From what I gather, here is what happens when I press "submit order":
1. The order information is submitted to a server (or something like that).
2. The order is assigned an ID number.
3. Once the order has been submitted, a new url is created with the order ID in it, and you are sent to that url. (That would be the "your order has now been submitted" page).
How would I re-create this process with python? Please be specific; the html code for the button is above.