protected virtual void Command() { INewForm rf = new NewForm(); if (rf.ShowDialog() == DialogResult.OK) { var newItem = new DemoPage() { TextX = rf.NewName, }; _collection.Add(rf.NewName, newItem, null); } }
public void WhenIFillInTheRequiredFieldsAndClickButton(Table fieldInfo) { UserInfo userInfo = new UserInfo { FirstName = fieldInfo.Rows[0]["FirstName"], LastName = fieldInfo.Rows[0]["LastName"], Email = fieldInfo.Rows[0]["Email"], Phone = fieldInfo.Rows[0]["Phone"], CompanyName = fieldInfo.Rows[0]["CompanyName"], Country = fieldInfo.Rows[0]["Country"] }; Application.SwitchToLatestHandle(); _demoPage = ((DemoPage)Application.CurrentPage); _demoPage.FillFormAndPlay(userInfo); }
public StepDefinitions(IWebDriver driver) { _page = new DemoPage(driver); }
public DemoSteps(IWebDriver driver) { _page = new DemoPage(driver); }
public void ThenTheContractManagementDemoPageIsDisplayed() { Application.SwitchToLatestHandle(); _demoPage = ((DemoPage)Application.CurrentPage); Assert.AreEqual("Demo", _demoPage.PageIdentifier); }
public App() { MainPage = new DemoPage(); }