package com.mridul.framework.selenium.tests;
import com.mridul.framework.selenium.pages.LoginPage;
import org.testng.annotations.Test;
import static org.testng.Assert.assertNotNull;
/**
* Created by Mridul on 3/16/2016.
*/
public class TestWebAuthorHelp extends AbstractTest{
@Test(enabled = true, groups = "prerequisite") //, dependsOnMethods = {"testURLToDash"} )
public void testLoginToDashFluently(){
try {
loginPage = new LoginPage(driver);
assertNotNull(loginPage);
homePage=loginPage.navigateToURL(expectedURL).and().typeInUserId("UserId")
.and().typeInPassword("Password").and().then().clickOnSubmitButton();
assertNotNull(homePage);
}catch (Exception e){
System.out.printf("Exception thrown : %s%n", e);
}
}
@Test(enabled = true, dependsOnMethods = {"testLoginToDashFluently"}, groups = "prerequisite" )
public void testWebAuthorHelpModal(){
try {
webAuthorHelpModal=homePage.clickOnWebAuthorHelp();
assertNotNull(webAuthorHelpModal);
}catch (Exception e){
System.out.printf("Exception thrown : %s%n",e);
}
}
@Test(enabled = true, dependsOnMethods = {"testWebAuthorHelpModal"}, dependsOnGroups = "prerequisite")
public void testOpenWebAuthorHelp(){
try {
webAuthorHelpModal.selectPleaseChooseACategory("Company Directory")
.and().selectNatureOfRequest("Terminated User showing in directory")
.and().fillInRequestDetails("Testing WebAuthor Help")
.and().fillInNotesOrComments("Testing POC for WebAuthor Help")
.and().clickOnOrderNowButton()
.and().clickOnSubmitOrder();
}catch (Exception e){
System.out.printf("Exception thrown : %s%n%n", e);
e.printStackTrace();
}
}
}
Friday, August 5, 2016
TestWebAuthorHelp
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment