Guest User

Untitled

a guest
Jun 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. System.Threading.Thread.Sleep(30000);
  2. Tab tab = instance.AllTabs[1];
  3. tab.SetActive();
  4. instance.ActiveTab.FindElementByAttribute("div","innerhtml","Spam","regexp",9).Click();
  5. System.Threading.Thread.Sleep(3000);
  6. instance.ActiveTab.FindElementByAttribute("button","class",@"Button sidebar__action is-visible","regexp",0).Click();
  7. System.Threading.Thread.Sleep(10000);
  8. instance.ActiveTab.FindElementByAttribute("nh-stream-item","innertext","NZDating","regexp",0).Click();
  9. System.Threading.Thread.Sleep(3000);
  10. instance.ActiveTab.FindElementByAttribute("nh-stream-item","innertext","NZDating","regexp",0).Click();
  11. System.Threading.Thread.Sleep(3000);
  12. var dom = instance.ActiveTab.DomText;
  13. var regex = System.Text.RegularExpressions.Regex.Match(dom,@"(?<=<td><font face="arial,helvetica"><b>).*(?=</b></font></td>)");
  14. if (!regex.Success) throw new Exception ("Не найден код на почте");
  15. project.Variables["link_confirm"].Value = regex.ToString();
  16. tab = instance.AllTabs[0];
  17. tab.SetActive();
Add Comment
Please, Sign In to add comment