public Test000HomePage()
     : base("Virtual Store - Home")
 {
     this.LblUserName = WebElement.Create(this, ElementLocator.Create(By.Id, "username"));
     this.BtnLogin    = WebElement.CreateNavigation <Test000HomePage>(this, ElementLocator.Create(By.Id, "login"));
     this.CtlMenu     = WebElement.CreateControl <MenuListItemControl>(this, ElementLocator.Create(By.Id, "menu"));
 }
 public Test000LoginPage(Browser browser)
     : base(browser, "Virtual Store - Login")
 {
     this.TxtUserName = WebElement.Create(this.Browser, this, ElementLocator.Create(By.Id, "userName"));
     this.TxtPassword = WebElement.Create(this.Browser, this, ElementLocator.Create(By.Id, "password"));
     this.BtnLogin    = WebElement.CreateNavigation <Test000HomePage>(this.Browser, this, ElementLocator.Create(By.Id, "login"));
     this.DdlCountry  = WebElement.CreateSelect(this.Browser, this, ElementLocator.Create(By.Id, "country"));
     this.DdlCity     = WebElement.CreateSelect(this.Browser, this, ElementLocator.Create(By.Id, "city"));
     this.CtlMenu     = WebElement.CreateControl <MenuListItemControl>(this.Browser, this, ElementLocator.Create(By.Id, "menu"));
 }
Beispiel #3
0
        public T this[int index]
        {
            get
            {
                if (index < 1)
                {
                    throw new IndexOutOfRangeException("SpecDrill: ListElement<T> index is 1-based!");
                }
                if (index > Count)
                {
                    throw new IndexOutOfRangeException("SpecDrill: ListElement<T>");
                }

                return(WebElement.CreateControl <T>(parent, locator.CopyWithIndex(index)));
            }
        }