Exemple #1
0
 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"]);
     }
 }
Exemple #2
0
        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");
            }
        }
Exemple #3
0
 public void UnselectAllFiles(string panel)
 {
     PanelBl.SelectItemOnPanel("..", panel);
 }
Exemple #4
0
 public void MakePanelActive(string panel)
 {
     MainView.ListBoxPanel(PanelBl.GetPanelIndex(panel)).Click();
 }
Exemple #5
0
 public void AssertItemIsAbsentOnPanel(string filename, string panel)
 {
     AssertionUtil.AssertFalse(PanelBl.IsFileFound(panel, filename), "File is present when should not be");
 }
Exemple #6
0
 public void AssertItemIsPresentOnPanel(string filename, string panel)
 {
     AssertionUtil.AssertTrue(PanelBl.IsFileFound(panel, filename), "File is not present when should be");
 }
Exemple #7
0
 public void SelectOptionFromContextMenuOnPanel(string option, string panel)
 {
     PanelBl.SelectItemInContextMenu(PanelBl.GetPanelIndex(panel), option);
 }
Exemple #8
0
 public void MoveFileFromOnePanelToAnother(string filename, string fromPanel, string toPanel)
 {
     PanelBl.MoveFile(PanelBl.GetPanelIndex(fromPanel), filename, PanelBl.GetPanelIndex(toPanel));
 }