Reputation: 1
#include <unistd.h>
int main()
{
char *arg[3];
arg[0] = "firefox";
arg[1] = "http://www.gmail.com";
arg[2] = '\0';
execvp(arg[0],arg);
}
Through this program I opened gmail home page in a web browser. Instead of giving username and password in the web browser, I want to give through C program. How can I do this?
Upvotes: 0
Views: 442
Reputation: 6887
It's not C, but you can probably do this using a test framework such as Selenium.
Upvotes: 0
Reputation: 382
Please clarify:
Are you trying to automate the opening of Firefox to your Gmail account, or write a program to log into your Gmail account and automatically download information?
Upvotes: 0