Пример #1
0
        public void WhenIClickOnTheButtonInTheActionBarAndSelect(string action, string srType)
        {
            GeneralPage.SwitchToFrame(ModuleActionBar.ID.mainGridFrame);
            string old = GeneralPage.GetCurrentWindow();

            ModuleActionBar.ClickNew(srType);
            log.Info("New button clicked and type selectd.");
            GeneralPage.SwitchToNewWindow(old);
            log.Info("Switched to new window.");
        }
Пример #2
0
        public void WhenIClickOnTheButtonInTheActionBar(string action)
        {
            GeneralPage.SwitchToFrame(ModuleActionBar.ID.mainGridFrame);
            string old = GeneralPage.GetCurrentWindow();

            //Hard coded to click on "New" action. Need to change this to accomodate other actions.
            ModuleActionBar.ClickNew();
            log.Info("New button clicked");
            GeneralPage.SwitchToNewWindow(old);
            log.Info("Switched to new window");
        }