Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.95 KB | None | 0 0
  1. javascript: (function () {function randomString(length, chars) { var result = ''; for (var i = length; i > 0; --i) result += chars[Math.round(Math.random() * (chars.length - 1))]; return result}function randomChars(length) { return randomString(length,'ABCDEFGHIJKLMNOPRSTUVWYZ')}function randomNums(length) { return ('9' + randomString((length-1),'0123456789'))}function randomNumbas(length) { return (randomString((1),'123456789') + randomString((length-1),'0123456789'))}function randomBirthDate() { return (randomString(1,'012') + randomString(1,'12345678') + '/0' + randomString(1,'123456789') + '/19' + randomString(1,'567') + randomString(1,'0123456789'))}var firstName = 'Kocicka'+randomChars(8);var lastName = 'Kocicka'+randomChars(8);var middleName = 'Amrit';var birthDate = randomBirthDate();var docNumber1 = randomNums(10);var docNumber2 = randomNums(10);var primaryMobile = randomNums(10);function run() { window.setTimeout(function() { $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:0\\:paneContent\\:name2]").each(function() { if ($(this).val() != (firstName)) { $(this).val(firstName).change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:0\\:paneContent\\:name3]").each(function() { if ($(this).val() != middleName) { $(this).val(middleName).change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:0\\:paneContent\\:name1]").each(function() { if ($(this).val() != (lastName)) { $(this).val((lastName)).change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:0\\:paneContent\\:genderType]").each(function() { if ($(this).val() != 'M') { $(this).val('M').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:0\\:paneContent\\:genderType]").each(function() { if ($(this).val() != 'M') { $(this).val('M').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:0\\:paneContent\\:birthDate]").each(function() { if ($(this).val() != birthDate) { $(this).val(birthDate).change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:1\\:paneContent\\:photoComponent\\:uploadForm\\:fileInput]").each(function() { if ($(this).val() != '') { $(this).val('').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:1\\:paneContent\\:photoTakingResult]").each(function() { if ($(this).val() != 'CLIENT_DOESNT_AGREE') { $(this).val('CLIENT_DOESNT_AGREE').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:2\\:paneContent\\:documents\\:view\\:1\\:repeatedRow\\:documentAttributes\\:1\\:component\\:value]").each(function() { if ($(this).val() != docNumber1) { $(this).val(docNumber1).change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:2\\:paneContent\\:documents\\:view\\:1\\:repeatedRow\\:documentAttributes\\:2\\:component\\:value]").each(function() { if ($(this).val() != '01/08/2014') { $(this).val('01/08/2014').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:2\\:paneContent\\:documents\\:view\\:1\\:repeatedRow\\:documentAttributes\\:3\\:component\\:value]").each(function() { if ($(this).val() != 'AG') { $(this).val('AG').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:3\\:paneContent\\:contacts\\:0\\:fixedContact]").each(function() { if ($(this).val() != primaryMobile) { $(this).val(primaryMobile).change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:3\\:paneContent\\:contacts\\:1\\:fixedContact]").each(function() { if ($(this).val() != '') { $(this).val('').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:3\\:paneContent\\:contacts\\:2\\:fixedContact]").each(function() { if ($(this).val() != '') { $(this).val('').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:3\\:paneContent\\:contacts\\:3\\:fixedContact]").each(function() { if ($(this).val() != '') { $(this).val('').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:3\\:paneContent\\:addContactButtonContainer\\:contactTypes]").each(function() { if ($(this).val() != '') { $(this).val('').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:5\\:paneContent\\:address\\:houseNumberOfficeNumber]").each(function() { if ($(this).val() != ('1' + randomNums(2))) { $(this).val(('1' + randomNums(2))).change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:5\\:paneContent\\:address\\:streetName]").each(function() { if ($(this).val() != 'DatStreet') { $(this).val('DatStreet').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:5\\:paneContent\\:address\\:town]").each(function() { if ($(this).val() != (randomNumbas(2))) { $(this).val((randomNumbas(2))).change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:5\\:paneContent\\:address\\:regionCode]").each(function() { if ($(this).val() != 'AG') { $(this).val('AG').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:5\\:paneContent\\:address\\:districtCode]").each(function() { if ($(this).val() != 'AG_AP') { $(this).val('AG_AP').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:4\\:paneContent\\:address\\:houseNumberOfficeNumber]").each(function() { if ($(this).val() != (randomNumbas(3))) { $(this).val((randomNumbas(3))).change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:4\\:paneContent\\:address\\:streetName]").each(function() { if ($(this).val() != 'YipYip') { $(this).val('YipYip').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:4\\:paneContent\\:address\\:town]").each(function() { if ($(this).val() != (randomNumbas(2))) { $(this).val((randomNumbas(2))).change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:4\\:paneContent\\:address\\:regionCode]").each(function() { if ($(this).val() != 'AG') { $(this).val('AG').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:7\\:paneContent\\:maritalStatusCode]").each(function() { if ($(this).val() != 'MARRIED') { $(this).val('MARRIED').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:7\\:paneContent\\:accompanimentTypeWrapper\\:accompanimentType]").each(function() { if ($(this).val() != 'AC') { $(this).val('AC').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:7\\:paneContent\\:childrenCount]").each(function() { if ($(this).val() != '2') { $(this).val('2').change() } }); $("[name=panesContainer\\:1\\:paneContent\\:panesContainer\\:7\\:paneContent\\:educationCode]").each(function() { if ($(this).val() != 'MASTERS') { $(this).val('MASTERS').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:7\\:paneContent\\:maritalStatusCode]").each(function() { if ($(this).val() != 'MARRIED') { $(this).val('MARRIED').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:7\\:paneContent\\:accompanimentTypeWrapper\\:accompanimentType]").each(function() { if ($(this).val() != 'AC') { $(this).val('AC').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:7\\:paneContent\\:childrenCount]").each(function() { if ($(this).val() != '2') { $(this).val('2').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:7\\:paneContent\\:educationCode]").each(function() { if ($(this).val() != 'MASTERS') { $(this).val('MASTERS').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:1\\:relationType]").each(function() { if ($(this).val() != 'FATHER') { $(this).val('FATHER').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:1\\:name2]").each(function() { if ($(this).val() != ('Hodor' + randomChars(5))) { $(this).val(('Hodor' + randomChars(5))).change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:1\\:name3]").each(function() { if ($(this).val() != 'the') { $(this).val('the').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:1\\:name1]").each(function() { if ($(this).val() != 'Linguist') { $(this).val('Linguist').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:1\\:phone\\.value1]").each(function() { if ($(this).val() != randomNums(10)) { $(this).val(randomNums(10)).change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:2\\:relationType]").each(function() { if ($(this).val() != 'BROTHER') { $(this).val('BROTHER').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:2\\:name2]").each(function() { if ($(this).val() != ('Cak' + randomChars(5))) { $(this).val(('Cak' + randomChars(5))).change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:2\\:name3]").each(function() { if ($(this).val() != 'No') { $(this).val('No').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:2\\:name1]").each(function() { if ($(this).val() != 'Rys') { $(this).val('Rys').change() } }); $("[name=panesContainer\\:2\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:2\\:phone\\.value1]").each(function() { if ($(this).val() != randomNums(10)) { $(this).val(randomNums(10)).change() } }); $("[name=panesContainer\\:3\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:1\\:relationType]").each(function() { if ($(this).val() != 'FATHER') { $(this).val('FATHER').change() } }); $("[name=panesContainer\\:3\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:1\\:name2]").each(function() { if ($(this).val() != ('Hodor' + randomChars(5))) { $(this).val(('Hodor' + randomChars(5))).change() } }); $("[name=panesContainer\\:3\\:paneContent\\:panesContainer\\:0\\:paneContent\\:personsContainer\\:relatedPersons\\:1\\:name3]").each(function() { if ($(this).val() != 'the') { $(this).val('the').change() } }); $("[n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement