Magento 2 Test Order Autofill Bookmarklet

Test order

Source (tele2.nl)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A%28function%28%29%7B%27use%20strict%27%3Bvar%20data%3D%5B%7Bcustomer_title%3A%27male%27%2Cfirstname_initials%3A%27F%27%2Cfirstname%3A%27Ubertest%27%2Clastname_prefix%3A%27%27%2Clastname%3A%27King%27%2Cdate_of_birth%3A%271%20januari%201970%27%2C%7D%2C%7Bemail%3A%[email protected]%27%2Cemail_confirmation%3A%[email protected]%27%2Czipcode%3A%271112XS%27%2Chouse_number%3A%2758%27%2Cphone%3A%270612345678%27%7D%2C%7Bid_type_dutch%3A%27driving_license%27%2Cdocument_number_dutch%3A%274567897123%27%2Ciban%3A%27NL17OBGW0850451396%27%2Ccurrent_mobile_number%3A%27%27%2Cnumber_retention%3A%27new%27%2Cnumber_protection%3Atrue%2Cnumber_mapping%3Atrue%7D%2C%7Bfamily_status%3A%27married%27%2Cmonthly_income%3A3000%2Cmonthly_expenses%3A1000%7D%2C%7Bagreement%3Atrue%7D%5D%3Bfunction%20populateField%28key%2Cvalue%29%7Bvar%20ctrl%3Ddocument.getElementsByName%28key%29%5B0%5D%3Bif%28ctrl.type%3D%3D%3D%27radio%27%29%7Bctrl%3Ddocument.querySelectorAll%28%27input%5Bname%3D%22%27+key+%27%22%5D%5Bvalue%3D%22%27+value+%27%22%5D%27%29%5B0%5D%3Bctrl.checked%3Dtrue%3Bvar%20clickEvt%3Ddocument.createEvent%28%22HTMLEvents%22%29%3BclickEvt.initEvent%28%27click%27%2Cfalse%2Ctrue%29%3Bctrl.dispatchEvent%28clickEvt%29%3Breturn%3B%7Dif%28ctrl.type%3D%3D%3D%27checkbox%27%29%7Bctrl.checked%3Dvalue%3Breturn%3B%7Dctrl.value%3Dvalue%3Bvar%20blurEvt%3Ddocument.createEvent%28%22HTMLEvents%22%29%3BblurEvt.initEvent%28%27blur%27%2Cfalse%2Ctrue%29%3Bctrl.dispatchEvent%28blurEvt%29%3Bvar%20changeEvt%3Ddocument.createEvent%28%22HTMLEvents%22%29%3BchangeEvt.initEvent%28%27change%27%2Cfalse%2Ctrue%29%3Bctrl.dispatchEvent%28changeEvt%29%3B%7Dfunction%20populateStep%28step%2C_data%29%7BObject.keys%28_data%29.forEach%28function%28key%29%7BpopulateField%28key%2C_data%5Bkey%5D%29%3B%7D%29%3Bif%28data%5Bstep%5D%21%3D%3Dundefined%29%7Bvar%20panels%3Ddocument.querySelectorAll%28%27.panel-collapse.in%27%29%3Bvar%20currentPanel%3Dpanels%5Bpanels.length-1%5D%3BcurrentPanel.querySelector%28%27.t2-btn-next%27%29.click%28%29%3BpollForStep%28step+1%2Cfunction%28%29%7BpopulateStep%28step+1%2Cdata%5Bstep%5D%29%3B%7D%29%3B%7D%7Dfunction%20pollForStep%28step%2Ccallback%29%7Bvar%20panels%3Ddocument.querySelectorAll%28%27.panel-collapse.in%27%29%3Bvar%20stepPanelOpen%3Dpanels%5Bstep-1%5D%21%3D%3Dundefined%3Ftrue%3Afalse%3Bif%28%21document.getElementsByName%28Object.keys%28data%5Bstep-1%5D%29%5B0%5D%29.length%7C%7C%21stepPanelOpen%29%7BsetTimeout%28function%28%29%7BpollForStep%28step%2Ccallback%29%3B%7D%2C100%29%3B%7Delse%7Bcallback%28%29%3B%7D%7DpollForStep%281%2Cfunction%28%29%7BpopulateStep%281%2Cdata%5B0%5D%29%3B%7D%29%3B%7D%29%28%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.