for(int i=0;i<29;i++)
{
HtmlElement he = instance.ActiveTab.GetDocumentByAddress("0").FindElementByAttribute("div", "class", "bet\\ roboto-font\\ padding\\ border-green", "regexp", Convert.ToInt32(project.Variables["olmp"].Value));
if (he.IsVoid) return -1;
else he.RiseEvent("click"...