[Given(@"that I navigate to the computer database app")] //opens the browser navigates to URL public void GivenThatINavigateToTheComputerDatabaseApp() { IWebDriver webDriver = new ChromeDriver(); //create object of the chrome driver webDriver.Navigate().GoToUrl("http://computer-database.gatling.io/computers"); //navigates to the URL mainViewPage = new MainViewPage(webDriver); // passing the webdriver to Main view page which we declared }
public App() { InitializeComponent(); MainPage = new MainViewPage(); }