Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.Threading.Thread.Sleep(30000);
- Tab tab = instance.AllTabs[1];
- tab.SetActive();
- instance.ActiveTab.FindElementByAttribute("div","innerhtml","Spam","regexp",9).Click();
- System.Threading.Thread.Sleep(3000);
- instance.ActiveTab.FindElementByAttribute("button","class",@"Button sidebar__action is-visible","regexp",0).Click();
- System.Threading.Thread.Sleep(10000);
- instance.ActiveTab.FindElementByAttribute("nh-stream-item","innertext","NZDating","regexp",0).Click();
- System.Threading.Thread.Sleep(3000);
- instance.ActiveTab.FindElementByAttribute("nh-stream-item","innertext","NZDating","regexp",0).Click();
- System.Threading.Thread.Sleep(3000);
- var dom = instance.ActiveTab.DomText;
- var regex = System.Text.RegularExpressions.Regex.Match(dom,@"(?<=<td><font face="arial,helvetica"><b>).*(?=</b></font></td>)");
- if (!regex.Success) throw new Exception ("Не найден код на почте");
- project.Variables["link_confirm"].Value = regex.ToString();
- tab = instance.AllTabs[0];
- tab.SetActive();
Add Comment
Please, Sign In to add comment