예제 #1
0
 public void Clicking()
 {
     _driver.FindElementByName("Home").Click();
     _OutLookStandardView.ClickByTab(_OutLookStandardView.FolderButton);
     _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(8);
     _OutLookStandardView.ClickByTab(_OutLookStandardView.HomeButton);
     //_OutLookStandardView.AssertDisplayed(_OutLookStandardView.NewFolderButton);
     _OutLookStandardView.AssertDisplayed(_OutLookStandardView.NewE_MailButton);
     //_calcStandardView.AssertResult(12);
 }
예제 #2
0
        public void FolderClick()
        {
            string fName = System.Reflection.MethodBase.GetCurrentMethod().Name;

            fName = TestContext.TestName;
            string txt = "";

            try
            {
                txt = _OutLookStandardView.FolderButton.Text;
                _OutLookStandardView.WaitUntil(_OutLookStandardView.FolderButton, _waitEl, fName);
                _OutLookStandardView.ClickElement(_OutLookStandardView.FolderButton, fName);
                txt = _OutLookStandardView.NewFolderButton.Text;
                _OutLookStandardView.AssertDisplayed(_OutLookStandardView.NewFolderButton);
                //_OutLookStandardView.AssertDisplayed(_OutLookStandardView.NewEmailButton);
            }
            catch (Exception exp)
            {
                Console.WriteLine($"Console " + $"catched: {fName}{exp.Message}");
                Assert.IsTrue(false, $"Testmetod {fName} failed.Element {txt} ");
            }
        }