public void DeleteStrand() { NavigateToModifyExistingScheme(); SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); // create Subject schemeSearchPanel = schemeSearchPanel.ClickCreateSubjectButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewSubjectLink(); string SubjectName = SchemeSearchPanel.GenerateRandomString(10); string SubjectDescription = SchemeSearchPanel.GenerateRandomString(20); string SubjectShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(SubjectName, SubjectDescription, SubjectShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // create Strand schemeSearchPanel = schemeSearchPanel.ClickCreateStrandButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewStrandLink(); string StrandName = SchemeSearchPanel.GenerateRandomString(10); string StrandDescription = SchemeSearchPanel.GenerateRandomString(20); string StrandShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(StrandName, StrandDescription, StrandShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // delete strand schemeSearchPanel = schemeSearchPanel.ClickDeleteStrandButton(); schemeSearchPanel = schemeSearchPanel.ClickDeleteOKButton(); Thread.Sleep(1000); }
public void DeleteStatement() { NavigateToModifyExistingScheme(); SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); // create Subject schemeSearchPanel = schemeSearchPanel.ClickCreateSubjectButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewSubjectLink(); string SubjectName = SchemeSearchPanel.GenerateRandomString(10); string SubjectDescription = SchemeSearchPanel.GenerateRandomString(20); string SubjectShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(SubjectName, SubjectDescription, SubjectShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // create Strand schemeSearchPanel = schemeSearchPanel.ClickCreateStrandButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewStrandLink(); string StrandName = SchemeSearchPanel.GenerateRandomString(10); string StrandDescription = SchemeSearchPanel.GenerateRandomString(20); string StrandShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(StrandName, StrandDescription, StrandShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); //add Levels schemeSearchPanel = schemeSearchPanel.ClickAssignExistingLevelButton(); schemeSearchPanel = schemeSearchPanel.ClickAddExistingLevelLink(); schemeSearchPanel.SelectLevel(1); schemeSearchPanel.SelectLevel(2); schemeSearchPanel = schemeSearchPanel.AddExistingLevelOKButton(); //create Statement schemeSearchPanel = schemeSearchPanel.ClickLevelNode(); schemeSearchPanel = schemeSearchPanel.ClickCreateStatementButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewStatementLink(); string StatementName = SchemeSearchPanel.GenerateRandomString(10); string StatementDescription = SchemeSearchPanel.GenerateRandomString(20); string StatementShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(StatementName, StatementDescription, StatementShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // delete statement schemeSearchPanel = schemeSearchPanel.ClickDeleteStatementButton(); schemeSearchPanel = schemeSearchPanel.ClickDeleteOKButton(); Thread.Sleep(1000); }
public void DeleteScheme() { NavigateToCreateScheme(); SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); string schemeName = SchemeSearchPanel.GenerateRandomString(10); string schemeDescription = SchemeSearchPanel.GenerateRandomString(20); string shortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(schemeName, schemeDescription, shortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); AddStatement(); schemeSearchPanel.ClickSaveButton(); schemeSearchPanel.waitforSavemessagetoAppear(); schemeSearchPanel.SaveMessageAssertionSuccess(); schemeSearchPanel = schemeSearchPanel.ClickDeleteSchemeButton(); schemeSearchPanel = schemeSearchPanel.ClickDeleteOKButton(); schemeSearchPanel.DeleteMessageAssertionSuccess(schemeName); }