Hi,
I have created a batch files that open a few websites in chrom. My problem is that i would like it to open them and enter the login details like : email and password and user and password.
can some one help me?
Code:
@ECHO OFF
SET BROWSER=chrome.exe
SET WAIT_TIME=2
START %BROWSER% -new-tab "http://Semple website"
START %BROWSER% -new-tab "http://Semple website"
@ping 127.0.0.1 -n %WAIT_TIME% -w 1000 > nul
START %BROWSER% -new-tab "http://Semple website"
Automatically enter the login details batch file
Moderator: DosItHelp
-
- Posts: 1
- Joined: 30 Aug 2018 02:48
Re: Automatically enter the login details batch file
The best way to do that would be by interfacing with the DOM ( Document Object Model ). I only did it with a language called autoIT. But the last time I checked it only supported Internet Explorer ( ie.au3 ). Some guys wrote a library that also supported firefox ( ff.au3 ). So unless you are willing to connect through Internet Explorer I can't really help. Also this is a bit complex, you'll need some basic understanding of DOM. Probably applications exist that can be run straight from the command prompt also.michelvaillancourt wrote: ↑30 Aug 2018 02:55Hi,
I have created a batch files that open a few websites in chrom. My problem is that i would like it to open them and enter the login details like : email and password and user and password.
can some one help me?
Code:
@ECHO OFF
SET BROWSER=chrome.exe
SET WAIT_TIME=2
START %BROWSER% -new-tab "http://Semple website"
START %BROWSER% -new-tab "http://Semple website"
@ping 127.0.0.1 -n %WAIT_TIME% -w 1000 > nul
START %BROWSER% -new-tab "http://Semple website"
-
- Expert
- Posts: 1163
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Automatically enter the login details batch file
You might also want to look into Selenium for automating logins, as that can be used on IE, Firefox, or Chrome. Beyond that, I'd recommend custom Greasemonkey scripts.