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 MenuControl(Browser browser, IElement parent, IElementLocator locator) : base(browser, parent, locator) { 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")); }
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")); }
public MenuListItemControl(IBrowser browser, IElement parent, IElementLocator locator) : base(browser, parent, locator) { LnkLogin = WebElement.CreateNavigation <Test000LoginPage>(browser, parent, ElementLocator.Create(By.PartialLinkText, "Login")); LnkHome = WebElement.CreateNavigation <Test000HomePage>(browser, parent, ElementLocator.Create(By.PartialLinkText, "Home")); }
private void InitFields() { this.TxtSearch = WebElement.Create(this.Browser, this, ElementLocator.Create(By.CssSelector, "input#lst-ib")); this.BtnSearch = WebElement.CreateNavigation <GoogleSearchResultsPage>(this.Browser, this, ElementLocator.Create(By.CssSelector, "button.lsb>span.sbico")); }