public void ValidateViewAllRequestsButtonCaption() { LoadWelcomePage(); logInPage.LogIn(UserName, Password); string actual = welcomePage.GetMakeANewRequestCaption(); welcomePageData = RealTestData <Welcome> .GetTestData("Welcome", "*", "TestName='" + new StackFrame(0).GetMethod().Name + "'"); foreach (Welcome welcome in welcomePageData) { Assert.AreEqual(welcome.Caption, welcomePage.GetViewAllRequestsCaption()); } }