public void S_1_013_VaultTest() { //a. Actor.AttemptsTo(Create.Item.OfItemType("S013 Chair").ByContextMenu); //b var form = Actor.AsksFor(ItemPageContent.Form); Actor.AttemptsTo(Set.NewValue(typeOfWoodValue).ForProperty("wood_type").OnForm(form), Select.Option(colorValue).ForDropdownProperty("paint_color").OnForm(form), Set.NewValue(dateValue).ForProperty("date_created").OnForm(form)); //b.v. Actor.AttemptsTo(Select.NewFile(uploadFilePath). WithSettings(Settings.MachineExecutionContext). ForProperty("blueprint"). ByLinkOnForm(form)); //c. Actor.AttemptsTo(Save.OpenedItem.ByDoneButton(), Close.ActiveItemPage.ByCloseButton); //d. Actor.AttemptsTo(Open.NavigationPanel, Open.SearchPanel.OfTocItemWithPath("S013 Chair").ByLoupeIcon, Search.Simple.InMainGrid.With(simpleSearchCriteria)); //e. In main grid check that link text in Blueprint cell is equal selected file. var columnNumberOfBlueprint = Actor.AsksFor(MainGridState.Unfrozen.IndexOfColumn(blueprintColumnLabel)); Actor.ChecksThat(MainGridState.Unfrozen.CellValue(1, columnNumberOfBlueprint), Is.EqualTo(fileName)); //f. var cell = Actor.AsksFor(MainGridContent.Unfrozen.Cell(1, columnNumberOfBlueprint)); var dialogContainer = Actor.AsksFor(SearchPanelContent.DialogsContainer); Actor.AttemptsTo(Open.Dialog.ManageFile.FromMainGrid.ByManageFilePropertyIconInCell(cell)); //f.i. Actor.VerifiesThat(Visibility.Of(ManageFileDialogElements.Title(dialogContainer)), Is.True); //ii. Actor.ChecksThat( ManageFileDialogState.IsButtonEnabled(ManageFileDialogElements.SelectNewFileButton(dialogContainer)), Is.False); Actor.ChecksThat( ManageFileDialogState.IsButtonEnabled(ManageFileDialogElements.DeleteFileButton(dialogContainer)), Is.False); //g. var targetFilePath = Path.Combine(workDirPath, fileName); Actor.AttemptsTo(Download.File.InManageFileDialog(Settings.MachineExecutionContext, dialogContainer, targetFilePath)); //g.i. Actor.ChecksThat(FileState.ExistsAndNotEmpty(targetFilePath), Is.True); Actor.AttemptsTo(Delete.File(targetFilePath)); //h. Actor.AttemptsTo(Close.Dialog(dialogContainer).ByCloseButton); //h.i. Actor.AttemptsTo(Close.Tab.Current); }