Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void DailyLoginBonus()
- {
- try
- {
- IWebElement dailyLoginBonus = webDriver.FindElement(By.CssSelector("#ds_body > div.popup_box_container"));
- if (dailyLoginBonus.Displayed)
- {
- IWebElement dailyLoginBonus_CloseBtn = webDriver.FindElement(By.CssSelector("#popup_box_daily_bonus > div > a"));
- dailyLoginBonus_CloseBtn.Click();
- }
- }
- catch (NoSuchElementException)
- {
- }
- }
Add Comment
Please, Sign In to add comment