видимо проблема сейчас после if в двигать мышь и кликнуть на элемент
var data = {fail:false,wait:true};data["scroll"] = "no scroll" == "scroll";data["threshold"] = parseInt(80);data["timeout"] = 5000;data["data"] = "iVBORw0KGgoAAAANSUhEUgAAAMEAAAAeBAMAAABnBGdVAAAALVBMVEUAWv/V5P////+cv/9Chf+Qt/+81P/k7v+Crv/y9/+nxv/5+/9dlv/F2f9zpf8aFseGAAABB0lEQVR4Ae2SsUoDQRCG58ixbHHFXhCsHcHG5kilaJFG5j1EMIepwqFgtYWNbGWEEGGtfQBBzm4LC/MkvoazupWphEkT9msGrvi/m38HMpnMfxg2a5/O0qxVJyDQT2sp5bWoQd32GzbQdAHl7NAqPABCr5+xJ+Rgh3tChhN7OaZO+SvrThfQfr6H9oN3qB5h1MgYanDNvf1pZtABTV6BLn5bWskY+F/JHIc4QSHiZAnFTjSUM5QxxFSfDAXn6WSo5kZoBzKg31JLyrMhtTTw3J6IIYbffBm9bANNH8Ad8UuHmg19NZcx7I75nO7Sta5wn6/Vw4iXOccXI3NLf+B32DDbYMhktphvXodGRgltnEgAAAAASUVORK5CYII=";_wait_image(data)!
_if(typeof _Idle != "undefined", function(){
_Idle.emulate({useGeneral: true, target: _image()})!
})!
_if_else(typeof _Idle != "undefined" && _Idle.additionalEmulationEnabled(), function(){
_Idle.moveAndClickOn(_image(),{holdCtrl: false, clickType: "left", wait: false, moveSettings: {} })!
}, function(){
_image().random_point()!
_if(_result().length > 0, function(){
move( {} )!
_image().clarify(X,Y)!
_call(_clarify, {} )!
mouse(X,Y)!
})!
})!
Не могу достать код подтверждения с письма
-
Доброй ночи не могу достать код подтверждения из письма ,в ответ от модуля одноразовой почты приходит вот такой текст
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="initial-scale=1.0"/><meta name="format-detection" content="telephone=no"/><title>LoginSecurityCode</title></head><body style="background-color:#EAEAEA;padding:2%;font-family:Helvetica,Arial,Sans Serif;"><table role='presentation' border='0' cellspacing='0' cellpadding='0' align='center' width="100%" dir=""><tr><td></td><td width="640"><table style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;background-color:#ffffff;max-width:640px;"><tr><td style="padding:10px 24px;"><img style="border:none;" width="116" src="https://NA4.docusign.net/Signing/Images/email/Email_Logo.png" alt="DocuSign"/></td></tr><tr><td style="padding:0px 24px 30px 24px;"><table role='presentation' border='0' cellspacing='0' cellpadding='0' width='100%' align='center' style='background-color:#1e4ca1;color:#ffffff;'><tr><td style="padding:28px 36px 36px 36px;border-radius:2px;background-color:#1e4ca1;color:#ffffff;font-size:16px;font-family:Helvetica,Arial,Sans Serif;width:100%;text-align:center;" align="center"><img width="75" height="75" src="https://NA4.docusign.net/member/Images/email/accountPassword-white.png" style="width:75px;height:75px;" /><table role='presentation' border='0' cellspacing='0' cellpadding='0' width='100%'><tr><td style="padding-top:24px;font-size:16px;font-family:Helvetica,Arial,Sans Serif;border:none;text-align:center;color:#ffffff" align="center"> Your DocuSign verification code is: </td></tr></table><p style="font-size:22px;color:#ffffff;font-family:Helvetica,Arial,Sans Serif;font-weight:bold;line-height:30px;" align="center">136829</p></td></tr></table></td></tr><tr><td style="padding:0px 24px 24px 24px;color:#000000;font-size:16px;font-family:Helvetica,Arial,Sans Serif;background-color:white;"><p style="font-size:15px;color:#333333;font-family:Helvetica,Arial,Sans Serif;line-height:20px;">Enter this code to confirm your email address. For security reasons, do not use this code outside of DocuSign. Never share this code.</p><p style="font-size:15px;color:#333333;font-family:Helvetica,Arial,Sans Serif;line-height:20px;">Didn’t request this code? Log into your DocuSign profile and update your password. For an extra layer of security, you can enable two-step verification.</p><p style="font-size:15px;color:#333333;font-family:Helvetica,Arial,Sans Serif;line-height:20px;"></p></td></tr><tr><td style="padding:0px 24px 12px 24px;background-color:#ffffff;font-family:Helvetica,Arial,Sans Serif;font-size:11px;color:#666666;"></td></tr><tr><td style="padding:30px 24px 45px 24px;background-color:#EAEAEA;"><p style="margin-bottom:1em;font-family:Helvetica,Arial,Sans Serif;font-size:13px;color:#666666;line-height:18px;"><b aria-level="3" role="heading">About DocuSign</b><br/> Sign documents electronically in just minutes. It's safe, secure, and legally binding. Whether you're in an office, at home, on-the-go -- or even across the globe -- DocuSign provides a professional trusted solution for Digital Transaction Management™. </p><p style="margin-bottom:1em;font-family:Helvetica,Arial,Sans Serif;font-size:13px;color:#666666;line-height:18px;"><a href="https://www.docusign.com/features-and-benefits/mobile?utm_campaign=GBL_XX_DBU_UPS_2211_SignNotificationEmailFooter&utm_medium=product&utm_source=postsend" style="color:#2463d1;" ><img style="margin-right:7px;border:none;vertical-align:middle;" width="18" height="18" src="https://NA4.docusign.net/Member/Images/email/icon-DownloadApp-18x18@2x.png" alt="" />Download the DocuSign App</a></p></td></tr></table></td><td></td></tr></table><span itemscope="" itemtype="http://schema.org/EmailMessage"><meta itemprop="text" content=" sent you a document to review and sign."/><span itemscope="" itemprop="about" itemtype="http://schema.org/CreativeWork"></span></span></body></html>
Нужно из него достать код подтверждения ,раньше использовал регулярные выражения но в этот раз не выходит получить код
код находиться на строке align="center">136829</p> -
прорблема в том что конкретно когда я работаю в модуле то из перпеменной Massage не получаеться достать всеми способами что описаны выше ,помогло только переформатирование в Json и потом уже из переменной JSON_Formated взять нужный текст с помощью регулятного выражения.....

