public void AddNewSubjectStrandStatement() { 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(20); 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(20); schemeSearchPanel.SetNameAndDescription(StatementName, StatementDescription, StatementShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // edit subject schemeSearchPanel = schemeSearchPanel.ClickEditSubjectButton(); schemeSearchPanel.SetNameAndDescription(SubjectName + ". Edited", SubjectDescription + ". Edited", SubjectShortName + ". Edited"); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // edit strand schemeSearchPanel = schemeSearchPanel.ClickEditStrandButton(); schemeSearchPanel.SetNameAndDescription(StrandName + ". Edited", StrandDescription + ". Edited", StrandShortName + ". Edited"); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // edit statement schemeSearchPanel = schemeSearchPanel.ClickEditStatementButton(); schemeSearchPanel.SetNameAndDescription(StatementName + ". Edited", StatementDescription + ". Edited", StatementShortName + ". Edited"); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // delete statement schemeSearchPanel = schemeSearchPanel.ClickDeleteStatementButton(); schemeSearchPanel = schemeSearchPanel.ClickDeleteOKButton(); // delete year schemeSearchPanel = schemeSearchPanel.ClickDeleteYearButton(); schemeSearchPanel = schemeSearchPanel.ClickDeleteOKButton(); // delete strand schemeSearchPanel = schemeSearchPanel.ClickDeleteStrandButton(); schemeSearchPanel = schemeSearchPanel.ClickDeleteOKButton(); // delete subject schemeSearchPanel = schemeSearchPanel.ClickDeleteSubjectButton(); schemeSearchPanel = schemeSearchPanel.ClickDeleteOKButton(); }