Dr.Data
05-09-2013, 08:23 AM
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!
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!