MCBrandon710
MIS
Hi, guys I'm new to the site and fairly new to VBScript. Is there a way to create a script to fill out a webform and then click a button to submit? I have the code working to fill out the form and select a necessary check box, but I can't figure out how to get it to submit.
Here's my current code without the button command:
Set IE = CreateObject("InternetExplorer.Application")
set WshShell = WScript.CreateObject("WScript.Shell")
IE.Navigate "IE.Visible = True
Wscript.Sleep 6000
IE.Document.All.Item("TEST").Value = "TEST"
IE.Document.All.Item("TEST").Value = "TEST"
IE.Document.All.Item("TEST").Value = "TEST@TEST.com"
IE.Document.All.Item("TEST").Value = "TEST"
IE.Document.All.Item("TEST").Value = "TEST"
IE.Document.All.Item("TEST").value = "TEST"
IE.Document.All.Item("TEST").value = "TEST"
IE.Document.All.Item("TEST").checked = true
This is part of the HTML that shows what I need to click:
<button onclick="sendSignup()" style="font-size: 18px; height: 30px; width: 120px;">Sign up</button>
Any help would be appreciated. Like I said I'm new to this. Thanks.
Here's my current code without the button command:
Set IE = CreateObject("InternetExplorer.Application")
set WshShell = WScript.CreateObject("WScript.Shell")
IE.Navigate "IE.Visible = True
Wscript.Sleep 6000
IE.Document.All.Item("TEST").Value = "TEST"
IE.Document.All.Item("TEST").Value = "TEST"
IE.Document.All.Item("TEST").Value = "TEST@TEST.com"
IE.Document.All.Item("TEST").Value = "TEST"
IE.Document.All.Item("TEST").Value = "TEST"
IE.Document.All.Item("TEST").value = "TEST"
IE.Document.All.Item("TEST").value = "TEST"
IE.Document.All.Item("TEST").checked = true
This is part of the HTML that shows what I need to click:
<button onclick="sendSignup()" style="font-size: 18px; height: 30px; width: 120px;">Sign up</button>
Any help would be appreciated. Like I said I'm new to this. Thanks.