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); }