/* Given: Logged into a valid account When: I look at the navigation bar Then: I will see a link for my user profile */ @Test public void testProfile(){ driver.findElement(By.id("navbar_username")).clear(); driver.findElement(By.id("navbar_username")).sendKeys("Aytros"); driver.findElement(By.id("navbar_password")).clear(); driver.findElement(By.id("navbar_password")).sendKeys("Mystra@428"); driver.findElement(By.value("Log in")).click(); String test = driver.findElement(By.linkText("Aytros")).getAttribute("title"); assertTrue(test.contains("Profile")); }