public GitHubRepoTestSteps(IWebDriver webDriver)
        {
            _driver = webDriver;//new ChromeDriver(Environment.CurrentDirectory);

            _driver.Manage().Window.Maximize();

            gitHubPage = Page.GetPage <GitHubPage>(_driver);
        }
Esempio n. 2
0
        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();
            }

        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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));
        }