public Test001CalculatorPage(Browser browser) : base(browser, "Calculator") { this.TxtOperand1 = WebElement.Create(this.Browser, this, ElementLocator.Create(By.Id, "operand1")); this.TxtOperand2 = WebElement.Create(this.Browser, this, ElementLocator.Create(By.Id, "operand2")); this.BtnAdd = WebElement.Create(this.Browser, this, ElementLocator.Create(By.Id, "add")); this.TxtResult = WebElement.CreateSelect(this.Browser, this, ElementLocator.Create(By.Id, "result")); }
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")); }