using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using DotNetSeleniumExtras.PageObjects;
using SeleniumExtras.WaitHelpers;
namespace TestAutomationProject.Tests
{
[TestFixture]
public class ExampleTests
{
private IWebDriver driver;
[SetUp]
public void Setup()
{
driver = new ChromeDriver();
// Additional setup code
}
[Test]
public void LoginPage_InvalidCredentials_DisplayErrorMessage()
{
// Arrange
var loginPage = new LoginPage(driver);
// Additional setup for the test
// Act
loginPage.Login("username", "password");
// Assert
Assert.IsTrue(loginPage.IsErrorMessageDisplayed());
}
[TearDown]
public void Teardown()
{
driver.Quit();
}
}
}