I am trying to write a script using VBS however I am having issues getting the code to work properly. I have to be able to run this script using Google Chrome. I am needing this script to fill in the username and password on a website and "log in." I have inspected the page using the developer tools in Google Chrome and without being to specific this is the element ID for the username text box and the password text box on the page respectively.
<input id="user_name_input" type="text" name="username" size="20" value="">
<input id="password_input" type="password" name="password" size="20" value="">
I have been working on it for a while and I cannot get it to run without bombing out. I have found this script online that will open the page correctly but I can't find anything that will get me past that.
Dim iURL
Dim objShell
iURL = "Website URL"
set objShell = CreateObject("WScript.Shell")
objShell.run(iURL)
I know that the Internet Explorer script to set the ID values is
IE.Document.All.Item("user_name_input").Value = "The@Email"
IE.Document.All.Item("password_input").Value = "Password"
but this does not work when I need it to run in Chrome. Please help.