dcsimg
Results 1 to 9 of 9
  1. #1

    Thread Starter
    New Member
    Join Date
    May 2018
    Posts
    6

    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.

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    98,907

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2018
    Posts
    6

    Re: Problem Autofilling a feiled VBscript

    Can someone help?

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    98,907

    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?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2018
    Posts
    6

    Re: Problem Autofilling a feiled VBscript

    IT has nothing to do with VB.NET it is Vb scripting

  6. #6
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    98,907

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    New Member
    Join Date
    May 2018
    Posts
    6

    Re: Problem Autofilling a feiled VBscript

    Thanks

  8. #8

    Thread Starter
    New Member
    Join Date
    May 2018
    Posts
    6

    Re: Problem Autofilling a feiled VBscript

    anybody can help?

  9. #9

    Thread Starter
    New Member
    Join Date
    May 2018
    Posts
    6

    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
  •  



Featured


Click Here to Expand Forum to Full Width


×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.