public void InitialRuns() { this.driver = new ChromeDriver(); Home_Page HomePage = new Home_Page(this.driver); HomePage.Navigate(); }
public void NavigateToHomePage_Test_4() { Home_Page homeP = new Home_Page(this.driver); PageFactory.InitElements(driver, homeP); homeP.Navigate(); Assert.IsTrue(homeP.Logo.Displayed); }
public static void Main() { ChromeDriver driver = new ChromeDriver(); driver.Manage().Window.Maximize(); Home_Page Home = new Home_Page(driver); Home.Navigate(); var screenshot = ((ITakesScreenshot)driver).GetScreenshot(); screenshot.SaveAsFile($"test.jpg", ScreenshotImageFormat.Jpeg); driver.Close(); }