daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Feb 14th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private static void DailyLoginBonus()
  2.         {
  3.             try
  4.             {
  5.                 IWebElement dailyLoginBonus = webDriver.FindElement(By.CssSelector("#ds_body > div.popup_box_container"));
  6.                 if (dailyLoginBonus.Displayed)
  7.                 {
  8.                     IWebElement dailyLoginBonus_CloseBtn = webDriver.FindElement(By.CssSelector("#popup_box_daily_bonus > div > a"));
  9.                     dailyLoginBonus_CloseBtn.Click();
  10.                 }
  11.             }
  12.             catch (NoSuchElementException)
  13.             {
  14.  
  15.             }
  16.         }
RAW Paste Data
Top