public void TC_VerifyNotification() { Page_Notifications pn = new Page_Notifications(); List <string[]> result = pn.VerifyAllNotifications(); Assert.Multiple(() => { for (int i = 0; i < result.Count; i++) { bool textmatch = Convert.ToBoolean(result.ElementAt(i)[1]); string msg = result.ElementAt(i)[0]; Assert.IsTrue(textmatch, msg); } } ); Common logout = new Common(); logout.LogOut(); }
public void TC_Notifications() { SeleniumKeywords.RefreshPage(); System.Threading.Thread.Sleep(3000); Page_Notifications pn = new Page_Notifications(); pn.ClickViewAllLink(); List <string[]> result = pn.VerifyAllNotifications(); Assert.Multiple(() => { for (int i = 0; i < result.Count; i++) { bool textmatch = Convert.ToBoolean(result.ElementAt(i)[1]); string msg = result.ElementAt(i)[0]; Assert.IsTrue(textmatch, msg); } } ); }