Пример #1
0
		public void Test007_UserAttachesFileToPost()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'The authorized User can attach the file to the message :'");

			var loginPage = new LoginPage(_driver);
			loginPage.LoginUsingDirectUrl(_baseUrl, _userNameNumberThree, _password);

			var userAccountPage = new UserAccountPage(_driver);
			userAccountPage.OpenActivityFeedLink(_baseUrl);

			var module = new JournalModule(_driver);
			module.AddNewPostWithAttachedFile(_subject, _fileNameToAttach);

			Trace.WriteLine("ASSERT the file displayed correctly:");
			Assert.IsTrue(module.ElementPresent(By.XPath("//div[@class = 'journalitem']//div/a[contains(text(), '" + _fileNameToAttach + "')]")),
						"File name is not displayed correctly");
		}