Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- await cookiesRemoveAsync();
- var frame=await navigateAsync("http://buzkoin.ru/1.txt",null,{onFrame: "DOMContentLoaded"});
- //await waitFrameReloadAsync(frame);
- await waitAsync(1000);
- var kod = frame.document.body.innerHTML;
- var a = kod.split('\n')[0].replace('<pre>','').split(';');
- commandAsync("setvar::mail="+a[0]);
- commandAsync("setvar::pass="+a[1]);
- //await navigateAsync("http://buzkoin.ru/mail/remove1.php",null,{onFrame: "DOMContentLoaded"});
- //await waitAsync(1000);
- await navigateAsync("http://buzkoin.ru/2.txt",null,{onFrame: "DOMContentLoaded"});
- //await waitFrameReloadAsync(frame);
- await waitAsync(1000);
- var kod = frame.document.body.innerHTML;
- var b = kod.split('\n')[0].replace('<pre>','');
- commandAsync("setvar::link="+b);
- //await navigateAsync("http://buzkoin.ru/mail/remove2.php",null,{onFrame: "DOMContentLoaded"});
- //await waitAsync(1000);
- await navigateAsync("http://buzkoin.ru/3.txt",null,{onFrame: "DOMContentLoaded"});
- //await waitFrameReloadAsync(frame);
- await waitAsync(1000);
- var kod = frame.document.body.innerHTML;
- var c = kod.split('\n')[0].replace('<pre>','');
- commandAsync("setvar::text="+c);
- //await navigateAsync("http://buzkoin.ru/mail/remove3.php",null,{onFrame: "DOMContentLoaded"});
- //await waitAsync(1000);
- await navigateAsync("https://passport.yandex.ru/",null,{onFrame: "DOMContentLoaded"});
- await waitFrameReloadAsync(frame);
- //await waitAsync(2000);
- let element = frame.document.querySelector('#passp-field-login');
- await inputTextAsync(element, a[0]);
- //await frame.wrappedJSObject.jQuery('#passp-field-login').val(a[0]);
- await waitAsync(1000);
- await frame.wrappedJSObject.jQuery('.passp-sign-in-button > button').eq(0).click();
- // await waitFrameReloadAsync(frame);
- await waitAsync(5000);
- element = frame.document.querySelector('#passp-field-passwd');
- await inputTextAsync(element, a[1]);
- // await frame.wrappedJSObject.jQuery('#passp-field-passwd').val(a[1]);
- await waitAsync(1000);
- await frame.wrappedJSObject.jQuery('form').submit();
- //await waitFrameReloadAsync(frame);
- await waitAsync(2000);
- commandAsync("debug::Test1");
- await navigateAsync(b,"https://passport.yandex.ru/",{onFrame: "DOMContentLoaded"});
- await waitAsync(2000);
- commandAsync("debug::Test2");
- frame.document.querySelector("div.public-DraftEditor-content > div > div div > span").textContent = c;
- let button1 = frame.document.querySelector('div.public-DraftEditor-content');
- await clickAsync (button1);
- await waitAsync(2000);
- let button2 = frame.document.querySelector('button.answer-form__button_page');
- await clickAsync (button2, { frameReloadEvent: "load" });
- }
- catch(e)
- {
- commandAsync("debug::Exception " + e);//В случае возникновения ошибок выводим информацию об ошибке в журнал
- await stopAsync(1);//Досрочно немедленно останавливаем презентацию, кредиты за неиспользованное время будут возвращены.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement