Added test case to check existence of main menu buttons.
This commit is contained in:
parent
cf5579d82b
commit
5c5d50ec13
|
@ -91,6 +91,24 @@ public class BasicTest {
|
|||
driver.switchTo().parentFrame();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void verifyExistenceOfMainMenuButtons() {
|
||||
driver.switchTo().frame("oben");
|
||||
// Verify existence of menu buttons
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("admin-menu-button"), true);
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("loco-menu-button"), true);
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("cargo-cars-menu-button"), true);
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("passenger-cars-menu-button"), true);
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("module-menu-button"), true);
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("equip-menu-button"), true);
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("meeting-menu-button"), true);
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("fileman-menu-button"), true);
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("calendar-menu-button"), true);
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("idman-menu-button"), true);
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("lola-menu-button"), true);
|
||||
Assert.assertEquals(FredlTestHelper.elementExistsById("logout-menu-button"), true); driver.switchTo().parentFrame();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void verifyLogout() {
|
||||
String frameObenName = "oben";
|
||||
|
|
Loading…
Reference in New Issue