public void AnnoymousAccess_100_1_4()
      {
          HomePage.SelectLeftMenuItem(driver, LocatorType.XPath, "//div[@id='zone-top']/div/div/div", LocatorType.Id, "guide");
          Thread.Sleep(3000);


          string title = string.Empty;

          for (int i = 0; i < driver.FindElements(By.ClassName("live")).Count; i = i + 10)
          {
              title = (driver.FindElements(By.ClassName("live")))[i].Text.Split('\n')[1];
              driver.FindElements(By.ClassName("live"))[i].Click();
              Thread.Sleep(10000);
              Assert.AreEqual(true, driver.FindElement(By.ClassName("parental-rating")).Text.Length > 10);

              Assert.AreEqual(true, title.Contains(driver.FindElement(By.CssSelector("div.left-column > div.title")).Text));
              Assert.AreEqual(true, ControlAccessMethods.ExistsElement(driver, LocatorType.ClassName, "watch-button"));

              driver.FindElement(By.ClassName("watch-button")).Click();

              Assert.AreEqual("LOG IN", driver.FindElement(By.CssSelector("div.header > div.title")).Text);
              Assert.AreEqual("LOG IN", driver.FindElement(By.CssSelector("button.button.login-button")).Text);

              driver.FindElement(By.ClassName("close-button")).Click();

              driver.Navigate().Back();
              Thread.Sleep(2000);
          }
      }
      public void AnnoymousAccess_100_1_7()
      {
          HomePage.SelectLeftMenuItem(driver, LocatorType.XPath, "//div[@id='zone-top']/div/div/div", LocatorType.Id, "svod");

          Thread.Sleep(3000);

          string title = string.Empty;

          for (int i = 0; i < driver.FindElements(By.ClassName("gallery-content")).Count; i = i + 5)
          {
              title = driver.FindElements(By.ClassName("gallery-content"))[i].Text.Split('\r')[0];
              driver.FindElements(By.ClassName("gallery-content"))[i].Click();
              Thread.Sleep(1000);
              Assert.AreEqual(true, ControlAccessMethods.ExistsElement(driver, LocatorType.ClassName, "login-button"));
              Assert.AreEqual(title, driver.FindElement(By.CssSelector("div.title")).Text);
              driver.Navigate().Back();
              Thread.Sleep(2000);
          }
      }
 public void AnnoymousAccess_100_1_3()
 {
     driver.FindElement(By.XPath("//div[@id='zone-top']/div/div/div")).Click();
     Thread.Sleep(2000);
     Assert.AreEqual(true, ControlAccessMethods.ExistsElement(driver, LocatorType.Id, "guide"));
     driver.FindElement(By.Id("guide")).Click();
     Thread.Sleep(3000);
     Assert.AreEqual(true, ControlAccessMethods.ExistsElement(driver, LocatorType.Id, "guide-now"));
     Assert.AreEqual(true, ControlAccessMethods.ExistsElement(driver, LocatorType.CssSelector, "#horizontal-scroll-view > div.left-button"));
     Assert.AreEqual(true, ControlAccessMethods.ExistsElement(driver, LocatorType.CssSelector, "#horizontal-scroll-view > div.right-button"));
     driver.FindElement(By.CssSelector("#horizontal-scroll-view > div.left-button")).Click();
     Thread.Sleep(2000);
     driver.FindElement(By.CssSelector("#horizontal-scroll-view > div.left-button")).Click();
     Thread.Sleep(2000);
     driver.FindElement(By.CssSelector("#horizontal-scroll-view > div.left-button")).Click();
     Thread.Sleep(2000);
     driver.FindElement(By.CssSelector("#horizontal-scroll-view > div.right-button")).Click();
     Thread.Sleep(2000);
     driver.FindElement(By.CssSelector("#horizontal-scroll-view > div.right-button")).Click();
     Thread.Sleep(2000);
     driver.FindElement(By.CssSelector("#horizontal-scroll-view > div.right-button")).Click();
     Thread.Sleep(6000);
 }
 public void AnnoymousAccess_100_1_2()
 {
     driver.FindElement(By.XPath("//div[@id='zone-top']/div/div/div")).Click();
     Thread.Sleep(2000);
     Assert.AreEqual(true, ControlAccessMethods.ExistsElement(driver, LocatorType.Id, "login"));
 }
 public void AnnoymousAccess_100_1_5()
 {
     Assert.AreEqual(true, ControlAccessMethods.ExistsElement(driver, LocatorType.Id, "catchup"));
 }