Consulting

Results 1 to 2 of 2

Thread: Scripting Web Form

  1. #1
    VBAX Newbie
    Joined
    May 2013
    Posts
    1
    Location

    Scripting Web Form

    Hello!

    I am automating a the filling out of a web form. I am able to automate almost all of it, but when I actually save the work. This function gets called, and a message box pops up. It doesn't stop my code like a VBA message box...so I'm able to use Sendkeys to bypass it...but I was hoping for a more robust way? Also there is a small loading window which doesn't seem to work with:

    Do While Obrowser.ReadyState <> 4: DoEvents: Loop

    I don't see that anything is changed after the loading screen...except For a pop up that says saved successfully.

    $.ajax({
    url: '/CustomForm/UpdateMilestone',
    type: "POST",
    datatype: "json",
    data: JSON.stringify(postdata),
    contentType: "application/json; charset=utf-8",
    success: function (data) {
    if (data.result == "success") {
    $('#divMilestoneGridData').html(data.GridData);

    Slate.MessageBox.successWithMsg('Milestone was updated successfully');


    }
    else {
    Slate.MessageBox.error(data.ErrorMsg);
    }
    }

    Again the offending code is:

    Slate.MessageBox.successWithMsg('Milestone was updated successfully');

    Is there anyway I can use VBA (or something else?) to determine when the box has popped up and click it?


    Thanks Guys!

  2. #2
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,646
    Without a valid URL it's hard to help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •