public void OpenFolderInPanelByPath(Table table) { Scope.DefaultWindow = Scope.Application.Application.GetWindow(ConfigurationManager.AppSettings["MainWindowName"]); foreach (var row in table.Rows) { MainView.ListBoxPanel(PanelBl.GetPanelIndex(row["Panel"])).Click(); Thread.Sleep(2000); PanelBl.OpenPath(row["Panel"], row["Folder path"]); } }
public void AssertFolderIsOpenInPanel(Table table) { Scope.DefaultWindow = Scope.Application.Application.GetWindow(ConfigurationManager.AppSettings["MainWindowName"]); foreach (var row in table.Rows) { var folderPath = row["Folder path"]; var panel = row["Panel"]; MainView.ListBoxPanel(PanelBl.GetPanelIndex(panel)).Click(); AssertionUtil.AssertNotNull(MainView.PanelCurrentDirectory(folderPath), "Current panel directory is incorrect"); } }
public void UnselectAllFiles(string panel) { PanelBl.SelectItemOnPanel("..", panel); }
public void MakePanelActive(string panel) { MainView.ListBoxPanel(PanelBl.GetPanelIndex(panel)).Click(); }
public void AssertItemIsAbsentOnPanel(string filename, string panel) { AssertionUtil.AssertFalse(PanelBl.IsFileFound(panel, filename), "File is present when should not be"); }
public void AssertItemIsPresentOnPanel(string filename, string panel) { AssertionUtil.AssertTrue(PanelBl.IsFileFound(panel, filename), "File is not present when should be"); }
public void SelectOptionFromContextMenuOnPanel(string option, string panel) { PanelBl.SelectItemInContextMenu(PanelBl.GetPanelIndex(panel), option); }
public void MoveFileFromOnePanelToAnother(string filename, string fromPanel, string toPanel) { PanelBl.MoveFile(PanelBl.GetPanelIndex(fromPanel), filename, PanelBl.GetPanelIndex(toPanel)); }