Exemplo n.º 1
0
        public void GivenIUserLogsIntoTheApplication()
        {
            System.Diagnostics.Debug.WriteLine("This is a New TestFW");
            CommonTestExecute ct = new CommonTestExecute();

            this.driver = ct.SetUp();
            driver.Navigate().GoToUrl("https://ce.invigorinsights.com/login.php");
            driver.Manage().Window.Maximize();
            driver.FindElement(By.XPath("//*[@id='userName']")).SendKeys("*****@*****.**");
            driver.FindElement(By.XPath("//*[@id='password']")).SendKeys("Test@123");
            driver.FindElement(By.XPath("/html/body/div/div/div[1]/div/div[2]/form/fieldset/div[6]/div[2]/button")).Click();
            new WebDriverWait(driver, TimeSpan.FromSeconds(1000)).Until(ExpectedConditions.ElementExists((By.Id("userName1"))));
        }
Exemplo n.º 2
0
        public InsightsRetail_TestIter(String BrowserType)
        {
            CommonTestExecute cte = new CommonTestExecute();

            this.driver = cte.SetUp(BrowserType);
        }