Пример #1
0
        [TestCase("user", "password")] //enters valid username and password
        public void TestSpecificYips(string user, string password)
        {
            //calls helper method InitLoginPage
            InitLoginPage(user, password, null, null, null);
            Thread.Sleep(2000);
            YipsListControl yipsList = new YipsListControl(driver);

            Thread.Sleep(2000);
            //verifies elements in a specific yip
            yipsList.Verify(20, 5, "Tom Sanders", "user", "Wind!Wind!Wind!Wind!Wind!");
        }
Пример #2
0
        //helper method to find elements
        private void Init()
        {
            //title page
            homepageTitle = By.XPath("/html/head/title");
            //footer
            footerBC = By.XPath("/html/body/footer");
            //all recent feed
            allYipsh2Header = By.XPath("//*[@class=\"yips-list\"]/h2");
            //compose new yip class
            composeYip = new ComposeNewYip(this.driver);
            //Search box class
            searchBox = new SearchBox(this.driver);
            //navigation control class
            navControl = new Navigationcontrol(this.driver);

            yipListControl = new YipsListControl(this.driver);
        }