I'm writing a program to pull stock info off etrade (legal, just faster if I do it automatically). I need to log in to get access. I'm at the point where I need to simulate clicking the "Log On" button on this page (https://us.etrade.com/e/t/user/login) from within my program. I have no idea how to do this. I'm currently using the libraries which simplify the task down to me giving a name=value for my username and password, but I can't find the link to simulate clicking the button. Any help is greatly appreciated!
1 reply to this topic
#1
Posted 23 December 2010 - 09:52 AM
|
|
|
#2
Posted 23 December 2010 - 02:45 PM
Hello,
I am not sure if you are looking to directly send a "mouse click" command to the web browser you will have the etrade website open in, or simply have your program move the mouse to the button on the website and click it. If you just want to have your program click the login button on the website after putting in your username and password, the Java Robot class might work for you. You can find a tutorial on the Robot class here. If you want to actually send a login command to the websites servers, I would suggest reading up on the API documentation that etrade provides (if any) and getting the hang of networking in Java. Hope this helps
I am not sure if you are looking to directly send a "mouse click" command to the web browser you will have the etrade website open in, or simply have your program move the mouse to the button on the website and click it. If you just want to have your program click the login button on the website after putting in your username and password, the Java Robot class might work for you. You can find a tutorial on the Robot class here. If you want to actually send a login command to the websites servers, I would suggest reading up on the API documentation that etrade provides (if any) and getting the hang of networking in Java. Hope this helps
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









