-
May 21st, 2018, 03:51 PM
#1
Thread Starter
New Member
Problem Autofilling a feiled VBscript
Good evening All, I am having problem. I have a html page that I am testing automation on, in short, I am trying to auto fill the field with VB, the page has one field with a submit button.
Here is the name field code
Code:
<input ng-reflect-id="firstName" id="firstName" ng-reflect-type="text" type="text" ng-reflect-placeholder="Legal Name" placeholder="name" class="ng-pristine ng-valid ng-touched">
Here is the Submit button code
Code:
<button ng-reflect-type="submit" type="submit" ng-reflect-id="next_btn" id="next_btn" ng-reflect-class-name="btn mobile-primary margin-bottom-15" class="btn mobile-primary margin-bottom-15">
Register
</button>
and here is my Vb code..
Code:
On Error Resume Next
Const PAGE_LOADED = 4
Set objIE = CreateObject("InternetExplorer.Application")
Call objIE.Navigate("my page URL")
objIE.Visible = True
Do Until objIE.ReadyState = PAGE_LOADED : Call WScript.Sleep(100) : Loop
objIE.Document.all.Item("firstName").Value = "Test"
call objIE.Document.all.Item("next_btn").click
Set objIE = Nothing
Can someone please let me know why this code is not working? and by not working I mean, the field is not autofilling. the script works it navigates to my site with no problem but it does not auto fill the field.
-
May 21st, 2018, 08:27 PM
#2
Re: Problem Autofilling a feiled VBscript
I'm wondering why this has been posted in the VB.NET forum. If you're using VBScript to affect a web page then this question has nothing to do with VB.NET.
-
May 21st, 2018, 09:09 PM
#3
Thread Starter
New Member
Re: Problem Autofilling a feiled VBscript
-
May 21st, 2018, 09:34 PM
#4
Re: Problem Autofilling a feiled VBscript
So does it have anything to do with VB.NET or not? If we don't know what you're actually asking then it's hard to help and if it doesn't have anything to do with VB.NET then we can get a moderator to move it to the appropriate forum, where the people with expertise in that area are most likely to be looking. Instead of ignoring the issue, how about doing what you can to help us help you?
-
May 21st, 2018, 09:36 PM
#5
Thread Starter
New Member
Re: Problem Autofilling a feiled VBscript
IT has nothing to do with VB.NET it is Vb scripting
-
May 21st, 2018, 09:42 PM
#6
Re: Problem Autofilling a feiled VBscript
OK then. I'll ask the mods to move it to the appropriate forum. It will potentially get more of the right eyes there.
-
May 21st, 2018, 10:09 PM
#7
Thread Starter
New Member
Re: Problem Autofilling a feiled VBscript
-
May 25th, 2018, 06:49 PM
#8
Thread Starter
New Member
Re: Problem Autofilling a feiled VBscript
-
Jun 11th, 2018, 06:24 PM
#9
Thread Starter
New Member
Re: Problem Autofilling a feiled VBscript
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|