Ejemplo n.º 1
0
            public void ClickCreateButton()
            {
                IWebElement weTemp = WebElementHelper.SafeFindElementDisplayed(By.Id(this.button_create_id));

//                CTX.driver.FindElement(By.Id(this.button_create_id)).Click();
                weTemp.Click();
            }
Ejemplo n.º 2
0
            public void FillProjectForm(string name)
            {
                WebDriverWait waiting = new WebDriverWait(CTX.driver, TimeSpan.FromSeconds(10));

                waiting.Until(ExpectedConditions.ElementExists(By.Id(this.edit_projectName_id)));

                WebDriverWait wait = new WebDriverWait(CTX.driver, TimeSpan.FromSeconds(3));

                wait.Until(ExpectedConditions.ElementIsVisible(By.Id(this.edit_projectName_id)));

                IWebElement weTemp = WebElementHelper.SafeFindElementDisplayed(By.Id(this.edit_projectName_id));

                if (weTemp == null)
                {
                    Console.Error.WriteLine("Project creation dialog: Name text field not present");
                }

                //IWebElement weTemp =  CTX.driver.FindElement(By.Id(this.edit_projectName_id));
                weTemp.SendKeys(name);
            }