public GitHubRepoTestSteps(IWebDriver webDriver) { _driver = webDriver;//new ChromeDriver(Environment.CurrentDirectory); _driver.Manage().Window.Maximize(); gitHubPage = Page.GetPage <GitHubPage>(_driver); }
public void TestFindRepositorySearchReturnsCorrectRepositories() { var options = new ChromeOptions(); options.AddArgument("start-maximized"); using (var driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), options)) { var gitHubPage = new GitHubPage(driver); gitHubPage.Open(); } }
public void ReturnVersionWith4DecimalPoints() { //Arrange GitHubPage updater = new GitHubPage { MasterGitHubUsername = "******", CurrentVersionNumber = Settings.Default["version"].ToString() }; //Act string output = GitHubPage.GetRawGitHubText(updater.MasterGitHubUsername, "version.txt"); //Assert Assert.AreEqual(updater.CurrentVersionNumber, output); }
public void SearchGitHubProfile(string username) { webDriver.Navigate().GoToUrl(baseUrl); var gitHubPage = new GitHubPage(webDriver); Thread.Sleep(5000); gitHubPage.SearchForUser(username); Thread.Sleep(5000); Assert.True(gitHubPage.IsUserLabelVisible(username)); }