Exemple #1
0
        public void VerificarDefaultProfile(String conteudo)
        {
            WebDriverWait   espera          = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5));
            SeleniumMaps    Maps            = new SeleniumMaps();
            HomePageObjects homePageObjects = new HomePageObjects();

            //veriricar espera

            //método try catch para validar se foi possível acessar a tela inicial
            try
            {
                Maps.CBClick(cbProfile, "", conteudo);
                Thread.Sleep(3000);
            }
            catch (Exception e)
            {
                NUnit.Framework.Assert.Fail(e.ToString());
            }
        }
Exemple #2
0
        public void VerificarAcessaReportIssue()
        {
            WebDriverWait   espera          = new WebDriverWait(DriverFactory.INSTANCE, TimeSpan.FromSeconds(5));
            SeleniumMaps    Maps            = new SeleniumMaps();
            HomePageObjects homePageObjects = new HomePageObjects();

            //veriricar espera

            //método try catch para validar se foi possível acessar a tela inicial
            try
            {
                //NUnit.Framework.Assert.AreEqual("Report Issue", _driver.FindElement(By.LinkText("Report Issue")).Text);
                Maps.VerificarItem(homePageObjects.ltReportIssue, "Report Issue", "");
            }
            catch (Exception e)
            {
                NUnit.Framework.Assert.Fail(e.ToString());
            }
        }