Save viewstate of the current form

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
cheemingyong
User
Posts: 37

Save viewstate of the current form

Post by cheemingyong »

hi is there a way to temporary save the viewstate of the current form ?
i am trying to find a way to build an autofill feature for automated testing
in asp.net maker.

i am building this form autofill because alot of time is wasted if i keep entering the different
input fields on the generated form as i have more than 30 fields to test
out at any point of time. is there any better way to do this ?

also the reason why i am building a form filler is because
the currently the forms generated by .net maker
cannot work with any of the form autofill chrome extensions
in the market. is there a good way approach to this problem ?

i can use $('#XXX').val('val'); for normal input fields
but once i encounter modal dialog there is no way i can
set the value using jquery. i have to click on the open
modal dialog button choose the select button because
an autofill event is called at the same time (since that
modal dialog has an autofill as well)


cheemingyong
User
Posts: 37

Post by cheemingyong »

i finally figured out by using the cjs extension on google chrome i can write automated UI test scripts on my own.
its really tricky to bypass the modal dialog by i did it.
to find out the right jquery selector for those modals you need to use selectify chrome extension
sometimes you need to delay some of the scripts due to autofills

/* automated testing start
$("#x_BankCountry").val("MALAYSIA");
$("#lu_x_BankName").click();
setTimeout(function () {
$("td:contains('BANK ISLAM MALAYSIA BERHAD')").closest('tr').find('input').click();
$("#ewModalLookupDialog > .modal-dialog > .modal-content > div.modal-footer > #btnSelect").click();
}, 1000);
setTimeout(function () {
$("#x_tmpdCurrCode").val("MYRSGD");
}, 2000);
$("#x_tmpsCurrCode").val("SGDSGD");
$("#x_TranType").val("Sell");
setTimeout(function () {
$("#x_tmpdAmount").val("1");
$("#x_tmpsellRate").val("0.2");
$("#x_tmpsellRate").change();
}, 2000);

automated testing end */


Post Reply